Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Sereal-Encoder CPAN distribution.

Report information
The Basics
Id: 101906
Status: open
Priority: 0/
Queue: Sereal-Encoder

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

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



Subject: corrupted packet from tricky blessedness
Date: Tue, 3 Feb 2015 11:08:23 +0000
To: bug-Sereal-Encoder [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
I was playing around with variations on [rt.cpan.org #101878] and got this surprising result: $ perl -MSereal::Encoder=encode_sereal -MSereal::Decoder=decode_sereal -MData::Dumper=Dumper -we '@a=(3,0,0,3); $a[1]=\$a[0]; $a[2]=\$a[3]; bless \$a[0], "Foo"; bless \$a[3], "Foo"; decode_sereal(encode_sereal(\@a))' Sereal: Error in srl_decoder.c line 1476 and char 15 of input: Corrupted packet. OBJECTV(_FREEZE) used without preceding OBJECT(_FREEZE) to define classname at -e line 1. Obviously this is a more serious fault than the loss of blessedness that I was looking at. I'm reporting it separately because it appears to have a distinct (albeit related) cause. -zefram
Subject: Re: [rt.cpan.org #101906] corrupted packet from tricky blessedness
Date: Tue, 3 Feb 2015 16:57:28 +0100
To: bug-Sereal-Encoder [...] rt.cpan.org
From: demerphq <demerphq [...] gmail.com>
thanks. I will try to investigate soon. On 3 February 2015 at 12:08, Zefram via RT <bug-Sereal-Encoder@rt.cpan.org> wrote: Show quoted text
> Tue Feb 03 06:08:36 2015: Request 101906 was acted upon. > Transaction: Ticket created by zefram@fysh.org > Queue: Sereal-Encoder > Subject: corrupted packet from tricky blessedness > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: zefram@fysh.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=101906 > > > > I was playing around with variations on [rt.cpan.org #101878] and got > this surprising result: > > $ perl -MSereal::Encoder=encode_sereal -MSereal::Decoder=decode_sereal -MData::Dumper=Dumper -we '@a=(3,0,0,3); $a[1]=\$a[0]; $a[2]=\$a[3]; bless \$a[0], "Foo"; bless \$a[3], "Foo"; decode_sereal(encode_sereal(\@a))' > Sereal: Error in srl_decoder.c line 1476 and char 15 of input: Corrupted packet. OBJECTV(_FREEZE) used without preceding OBJECT(_FREEZE) to define classname at -e line 1. > > Obviously this is a more serious fault than the loss of blessedness > that I was looking at. I'm reporting it separately because it appears > to have a distinct (albeit related) cause. > > -zefram >
-- perl -Mre=debug -e "/just|another|perl|hacker/"