Subject: | version::new does not check number of arguments |
version::new with no arguments reads past the end of the stack. It behaves erratically if it does
not find what it expects. Of course any code that does this is buggy, but it is an easy mistake to
make:
Pint:perl.git-copy sprout$ ./perl -Ilib -e ' version::new'
Bus error
Pint:perl.git-copy sprout$ ./perl -Ilib -le '$x = 1; print version::new'
*version::new=HASH(0x803630)
Pint:perl.git-copy sprout$ ./perl -Ilib -le '$x = "version"; print version::new'
Invalid version format (dotted-decimal versions require at least three parts) at -e line 1.