Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 93607
Status: open
Priority: 0/
Queue: Sereal-Decoder

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: refcount broken in undocumented functions
Date: Fri, 7 Mar 2014 12:46:21 +0000
To: bug-Sereal-Decoder [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
Download (untitled) / with headers
text/plain 255b
The undocumented decode_with_header{,_and_offset} functions screw up the refcount of the elements being put into the returned array. av_store takes ownership of one counted reference, but the code doesn't increment the refcount for that purpose. -zefram
Subject: Re: [rt.cpan.org #93607] refcount broken in undocumented functions
Date: Fri, 7 Mar 2014 14:39:24 +0100
To: bug-Sereal-Decoder [...] rt.cpan.org
From: demerphq <demerphq [...] gmail.com>
Download (untitled) / with headers
text/plain 901b
On 7 March 2014 13:46, Zefram via RT <bug-Sereal-Decoder@rt.cpan.org> wrote: Show quoted text
> Fri Mar 07 07:46:35 2014: Request 93607 was acted upon. > Transaction: Ticket created by zefram@fysh.org > Queue: Sereal-Decoder > Subject: refcount broken in undocumented functions > 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=93607 > > > > The undocumented decode_with_header{,_and_offset} functions screw > up the refcount of the elements being put into the returned array. > av_store takes ownership of one counted reference, but the code doesn't > increment the refcount for that purpose.
Fix pushed as 1c1ac37b0709630832634d4ffd27d4431ea8b285. If you have a test for this a patch would be welcomed. Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.