]> Sergey Matveev's repositories - public-inbox.git/commit
eml: avoid Encode 2.87..3.12 leak
authorEric Wong <e@80x24.org>
Wed, 13 Oct 2021 10:16:08 +0000 (10:16 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Oct 2021 19:52:26 +0000 (19:52 +0000)
commit00d5dff2cce9d2c9b5720c0971ae3fd995c22c94
treeedf609a8e8588f8012121503868f3f42496bdaf0
parent8d0091bb5bf984b924406a0a55da1c2136227438
eml: avoid Encode 2.87..3.12 leak

Encode::FB_CROAK leaks memory in old versions of Encode:
<https://rt.cpan.org/Public/Bug/Display.html?id=139622>

Since I expect there's still many users on old systems and old
Perls, we can use "$SIG{__WARN__} = \&croak" here with
Encode::FB_WARN to emulate Encode::FB_CROAK behavior.
lib/PublicInbox/Eml.pm