Mailing List Archive

[Encode] 3.14 Released
Porters,

Just updated Encode to 3.14.

https://github.com/dankogai/p5-encode/pull/161

> Pull request #72 fixed memory
> corruption but introduced a new memory leak as dst scalar is not mortal
> anymore and not every possible exit from every XS function properly release
> scalar's memory.
>
> Fix this memory leak by making dst scalar mortal again. To not re-introduce
> that memory corruption, first store dst scalar into temporary variable and
> then save it into stack via ST(0) macro.

=head1 Availability

* git clone git://github.com/dankogai/p5-encode.git
* https://www.dan.co.jp/~dankogai/cpan/Encode-3.14.tar.gz
* CPAN near you.

Travis is all green.

* https://app.travis-ci.com/github/dankogai/p5-encode

=head1 CPAN index

User: DANKOGAI ()
Distribution file: Encode-3.14.tar.gz
Number of files: 225
*.pm files: 26
README: Encode-3.14/README
META-File: Encode-3.14/META.json
META-Parser: Parse::CPAN::Meta 1.4414
META-driven index: no
Timestamp of file: Fri Oct 8 00:35:29 2021 UTC
Time of this run: Fri Oct 8 00:38:31 2021 UTC

=head1 Changes

$Revision: 3.14 $ $Date: 2021/10/08 00:30:35 $
! Encode.xs
Pulled: Fix memory leak in function encode_method()
https://github.com/dankogai/p5-encode/pull/161

=head1 AUTHOR

Dan the Encode Maintainer
Re: [Encode] 3.14 Released [ In reply to ]
Dan Kogai <dankogai@dan.co.jp> wrote:
> Porters,
>
> Just updated Encode to 3.14.
>
> https://github.com/dankogai/p5-encode/pull/161

Hi Dan, it looks like you missed Pali's note about reverting
commit 2397881 (resolve RT#139622).

Pali's change is more complete than 2397881. With 3.14,
the leak test included with RT#139622 hits SIGSEGV:
https://rt.cpan.org/Ticket/Display.html?id=139622

Thanks.