Bug#584428: infinite loop in parse_params

Chris Butler chrisb at debian.org
Sat Jun 5 13:02:13 UTC 2010


tags 584428 +patch
forwarded 584428 https://rt.cpan.org/Public/Bug/Display.html?id=57253
thanks

This bug seems to be similar to upstream bug #57253 (accessing beyond the
string in count_params). I've added the following note to that ticket with
the attached patch:

========================================================================
It looks like there's a similar bug in parse_params to do with comments 
at the end of statements. It was reported to the Debian bug tracking 
system here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584428

Looking at the code in parse_params, it seems that the comment detection 
will only stop when it reaches a newline, and doesn't check for the end 
of the string.

I guess you may have spotted and fixed this issue when fixing 
count_params, but it seems your git repository is missing the changes to 
dbdimp.c. I've attached a patch anyway which fixes parse_params.
========================================================================

Hopefully this should be fixed in the next upstream release.

-- 
Chris Butler <chrisb at debian.org>
  GnuPG Key ID: 4096R/49E3ACD3


More information about the pkg-perl-maintainers mailing list