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

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

From:
Father Chrysostomos
Date:
December 28, 2009 02:56
Subject:
[PATCH] Re: [perl #71254] Segv in Data::Dumper
Message ID:
1D89A543-DD42-4BA5-B628-984325E60918@cpan.org
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.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About