Skip Menu |

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

Report information
The Basics
Id: 102273
Status: open
Priority: 0/
Queue: JSON-SL

People
Owner: Nobody in particular
Requestors: blue [...] thisisnotmyrealemail.com
Cc:
AdminCc:

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



Subject: segfault when input text is undef
This segfaults: my $parser = JSON::SL->new; $parser->feed(undef); $ perl -E 'say $]' 5.020002 $ perl -MJSON::SL=99999 -E 1 JSON::SL version 99999 required--this is only version 1.0.4
On Sat Feb 21 16:30:55 2015, blue wrote: Show quoted text
> This segfaults: > my $parser = JSON::SL->new; > $parser->feed(undef); >
Above snippet outputs this: Input is not a string at test.pl line 9. So, I'm not sure what're you expecting when passing undef as input. Could you please elaborate? I'm running it on version 1.0.5 of JSON::SL, so may be this bug is already fixed, but not RT is not updated? Show quoted text
> $ perl -E 'say $]' > 5.020002 > > $ perl -MJSON::SL=99999 -E 1 > JSON::SL version 99999 required--this is only version 1.0.4
I tried it on 5.020000, are you able to reproduce it in other versions of perl or only on 5.020002? Thanks.
On 2015-07-04 12:52:19, SWEETKID wrote: Show quoted text
> On Sat Feb 21 16:30:55 2015, blue wrote:
> > This segfaults: > > my $parser = JSON::SL->new; > > $parser->feed(undef); > >
> Above snippet outputs this: > > Input is not a string at test.pl line 9. > > So, I'm not sure what're you expecting when passing undef as input. > Could you please elaborate? I'm running it on version 1.0.5 of > JSON::SL, so may be this bug is already fixed, but not RT is not > updated?
Very likely: https://metacpan.org/diff/file?source=MNUNBERG/JSON-SL-1.0.4&target=MNUNBERG/JSON-SL-1.0.5#SL.xs
On Sun Jul 05 00:12:26 2015, SREZIC wrote: Show quoted text
> On 2015-07-04 12:52:19, SWEETKID wrote:
> > On Sat Feb 21 16:30:55 2015, blue wrote:
> > > This segfaults: > > > my $parser = JSON::SL->new; > > > $parser->feed(undef); > > >
> > Above snippet outputs this: > > > > Input is not a string at test.pl line 9. > > > > So, I'm not sure what're you expecting when passing undef as input. > > Could you please elaborate? I'm running it on version 1.0.5 of > > JSON::SL, so may be this bug is already fixed, but not RT is not > > updated?
> > Very likely: https://metacpan.org/diff/file?source=MNUNBERG/JSON-SL- > 1.0.4&target=MNUNBERG/JSON-SL-1.0.5#SL.xs
Sorry, it seems this fix didn't actually make it into 1.0.5 (though the 1.0.5 as claimed by github did work). I've just uploaded a '1.0.6' which should contain these fixes.