Skip Menu |

This queue is for tickets about the JSON-DWIW CPAN distribution.

Report information
The Basics
Id: 33121
Status: resolved
Priority: 0/
Queue: JSON-DWIW

People
Owner: Nobody in particular
Requestors: josef [...] ttdpatch.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Escaped quotes cause JSON::DWIW::deserialize to crash Perl
Date: Mon, 11 Feb 2008 18:09:09 +0100
To: bug-JSON-DWIW [...] rt.cpan.org
From: Josef Drexler <josef [...] ttdpatch.net>
The following sample code causes Perl to crash with "*** glibc detected *** free(): invalid next size (fast): 0x08164750 ***", using JSON::DWIW version 0.21, Perl 5.8.8 for Debian 4.0/i686. #!/usr/bin/perl use JSON::DWIW; JSON::DWIW::deserialize q([{'aaaaaa':"bbbbbbbbbbbbbbb\\"ccccc\\"dd"}]); Removing the escaped quotes fixes the crash. -- Josef Drexler josef@ttdpatch.net
Fixed in version 0.23.
Thanks for the bug report Josef. This has been fixed in version 0.23. Don On Mon Feb 11 12:10:00 2008, josef@ttdpatch.net wrote: Show quoted text
> The following sample code causes Perl to crash with "*** glibc > detected *** free(): invalid next size (fast): 0x08164750 ***", using > JSON::DWIW version 0.21, Perl 5.8.8 for Debian 4.0/i686. > > #!/usr/bin/perl > use JSON::DWIW; > JSON::DWIW::deserialize q([{'aaaaaa':"bbbbbbbbbbbbbbb\\"ccccc\\"dd"}]); > > Removing the escaped quotes fixes the crash. >