Hello Thomas,
Am Donnerstag 19 Juni 2008 schrieb Thomas Reinke:
> Hmmm...other than a warning I was getting that might have
> undefined results, I'm getting recomp() doing the right thing.
>
> Can you try the following script and see if it spits
> back -1 in revcomp?
>
> $ cat x.nasl
> #!/usr/local/bin/nasl
>
> include("revisions-lib.inc");
>
> old = "1.2.8-0ubuntu8";
> new = "1.2.8-0ubuntu8.3";
>
> display(string(revcomp(a:old, b:new)));
> $
> $ ./x.nasl
> ** WARNING : packet forgery will not work
> ** as NASL is not running as root
> -1$
It is working. Found my mistake.
> In the meantime, I've checked in an update which fixes
> a past-end-of array index access, but it shouldn't change
> the behaviour of revcomp().
>
> If you're calling isdpkgvuln, remember it will return
> 0 if the release detected doesn't match the one you
> are testing, or if the package list wasn't retrieved.
> I suspect one of those problems is occurring.
You a absolutly right. Sorry.
I should not write scripts a look football a the same time. ;-)
Thanks you.
--
Gruss
Carsten Koch-Mauthe
http://www.dn-systems.de mail: [EMAIL PROTECTED]
DN-Systems Enterprise Internet Solutions GmbH
Hornemannstr. 11 31137 Hildesheim, Germany
Tel. +49-5121-28989-0 Fax. +49-5121-28989-11
21 Sunrise Ct, S.San Francisco, CA 94080, USA
Tel. +1-650-472-2512 Mob. +1-650-430-1219
Handelsregister HRB-3213 Amtsgericht Hildesheim
Geschäftsführer Lukas Grunwald
_______________________________________________
Openvas-devel mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-devel