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