On Sun, Nov 20, 2005 at 10:29:25PM -0800, Robert Menschel wrote: > It only happens on SARE rules, and only on specific SARE files. > Nobody within SARE can reproduce it.
Really? I can reproduce this by putting in the single line:
meta SARE_OBFU_OBLIGATION 0
> This structure has worked well, until now. It fails as far as I know
> only on Richard's
> O> i'm building SA r345765 on OSX 10.4.3 w/ gcc401 & perl 587.
fails on my FC3 Linux machine and my OSX machine.
> I cannot see any reason for these to fail on his system. Can anyone
> else find an explanation?
meta statements aren't the same as if/then constructs? ;)
The problem is that in the code, the rule gets turned into:
if (my $result = 0 ) { $self->got_hit (q#SARE_OBFU_OBLIGATION#, "", $result); }
because the result is needed for further processing. Normal rules look like:
if (my $result = ( $self->{'tests_already_hit'}->{'__HTML_LENGTH_384'} &&
$self->{'tests_already_hit'}->{'__TAG_EXISTS_CENTER'} ) ) { $self->got_hit
(q#HTML_SHORT_CENTER#, "", $result); }
--
Randomly Generated Tagline:
"The day Microsoft makes something that doesn't suck is probably the day
they start making vacuum cleaners." - Ernst Jan Plugge
pgpyyDFggTALg.pgp
Description: PGP signature
