tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

vulnerabilities pattern oddity



Hi,

In the pkg-vulnerabilities list contains the following two lines:

perl{,-thread}-5.8.[0-4]{,nb*}*         local-file-write
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0452
perl{,-thread}-5.8.[0-4]{,nb*}*         local-file-write
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0448

These are the only two lines that have a pattern that includes a "{}
wildcard with a trailing "*".  How is this pattern interpreted?  Isn't
the last "*" superflous, since the "{,nb*}" already expands to "<emtpy
string>" and "nb*"?

Incidentally, the use of the "*" is somewhat against regex convention --
here, it doesn't mean "0 or more 'b's", it means "a 'b' followed by
anything" (ie "nb.*").

-Jan

Attachment: pgpzyG9RvIRFA.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index