Fix Encode(3p) loading module from incorrect relative path
authorafresh1 <afresh1@openbsd.org>
Tue, 10 Aug 2021 03:45:30 +0000 (03:45 +0000)
committerafresh1 <afresh1@openbsd.org>
Tue, 10 Aug 2021 03:45:30 +0000 (03:45 +0000)
commitc50a90c55782761bf348230c6e982e9e312a0c70
tree610b929e7338f2874f1f3a4bbb1c2709a5e0794f
parent76f0ad4966d6df3c38e3d169efecd642996f9c7c
Fix Encode(3p) loading module from incorrect relative path

This is upstream commit
https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9

Quoting upstream:

    Without this fix, Encode::ConfigLocal can be loaded from a path
    relative to the current directory, because the || operator will
    evaluate @inc in scalar context, putting an integer as the only
    value in @inc.

Addresses CVE-2021-36770
gnu/usr.bin/perl/cpan/Encode/Encode.pm