develooper Front page | perl.perl5.porters | Postings from December 2009

[PATCH] Re: [perl #71254] Segv in Data::Dumper

Father Chrysostomos
December 28, 2009 02:56
[PATCH] Re: [perl #71254] Segv in Data::Dumper
Message ID:
This was caused by change 27323/f7877b281b4, which changes the way  
globs are stored in SVs. This patch teaches Perl_magic_setmglob (which  
resets the match position after an assignment) about globs. What was  
happening was that the globness was turned off (with the type still as  
PVGV), which essentially turned the variable into a strange empty  
string. Data::Dumper, seeing a PVGV, assumes the string form is at  
least 1 char (which should always be the case), and ends up reading  
past the end of the string if it is blank. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About