A
Anthony Rumble
After a lot of tearing hair out finding this.. I have found a rather nasty
little bug in a piece of perl that has been hanging around since perl4 days..
shellwords.pl
Basically, if you give it a string where the last character is a backslack,
it goes off and gobbles all available ram (quite quickly too mind you).
Here is an example.
!! WARNING !! Be warned.. this will gobble up all ram and possibly
kill your machine... You have been warned..
#!/usr/bin/perl
require "shellwords.pl";
my(@words) = shellwords("This is a test\\");
Im just surprised that such a bug has been left around!
I can't really even work out where or how it's even doing it..
Any ideas?
little bug in a piece of perl that has been hanging around since perl4 days..
shellwords.pl
Basically, if you give it a string where the last character is a backslack,
it goes off and gobbles all available ram (quite quickly too mind you).
Here is an example.
!! WARNING !! Be warned.. this will gobble up all ram and possibly
kill your machine... You have been warned..
#!/usr/bin/perl
require "shellwords.pl";
my(@words) = shellwords("This is a test\\");
Im just surprised that such a bug has been left around!
I can't really even work out where or how it's even doing it..
Any ideas?