develooper Front page | perl.perl5.porters | Postings from November 2016

[perl #68348] Storable null pointer deref on truncated data

From:
John D. Lightsey via RT
Date:
November 22, 2016 02:31
Subject:
[perl #68348] Storable null pointer deref on truncated data
Message ID:
rt-4.0.24-2096-1479752846-1872.68348-15-0@perl.org
On Sun, 09 Aug 2009 06:56:32 -0700, dgl wrote:
> 
> When deserialising truncated storable data where the truncation is
> within a
> coderef there seems to be a null pointer dereference:
> 
> Program received signal SIGSEGV, Segmentation fault.
> retrieve_code (my_perl=0x754010, cxt=0x8c3750, cname=0x0) at
> Storable.xs:5438
> 5438            sv_catpv(sub, SvPV_nolen(text)); /* XXX no sv_catsv!
> */
> 
> text is 0x0.

The patch attached to https://rt.perl.org/Ticket/Display.html?id=130098 fixes this segfault.

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=68348



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