Skip to content

Commit 527e482

Browse files
committed
version 3.12 to address CVE-2021-36770
1 parent 0935b48 commit 527e482

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

Changes

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Revision history for Perl extension Encode.
22
#
3-
# $Id: Changes,v 3.11 2021/07/23 02:26:54 dankogai Exp dankogai $
3+
# $Id: Changes,v 3.12 2021/08/09 14:17:04 dankogai Exp dankogai $
44
#
5-
$Revision: 3.11 $ $Date: 2021/07/23 02:26:54 $
5+
$Revision: 3.12 $ $Date: 2021/08/09 14:17:04 $
6+
! Encode.pm
7+
Address CVE-2021-36770
8+
<9639159a-d070-4762-9cbd-f1622f10449c@beta.fastmail.com>
9+
3.11 2021/07/23 02:26:54
610
! Unicode/Unicode.xs
711
+ t/Unicode_trailing_nul.t
812
Pulled: Ensure that UTF-16 decode always includes a trailing NUL.

Encode.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#
2-
# $Id: Encode.pm,v 3.11 2021/07/23 02:26:02 dankogai Exp $
2+
# $Id: Encode.pm,v 3.12 2021/08/09 14:17:04 dankogai Exp dankogai $
33
#
44
package Encode;
55
use strict;
66
use warnings;
77
use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};
88
our $VERSION;
99
BEGIN {
10-
$VERSION = sprintf "%d.%02d", q$Revision: 3.11 $ =~ /(\d+)/g;
10+
$VERSION = sprintf "%d.%02d", q$Revision: 3.12 $ =~ /(\d+)/g;
1111
require XSLoader;
1212
XSLoader::load( __PACKAGE__, $VERSION );
1313
}
@@ -65,8 +65,8 @@ require Encode::Config;
6565
eval {
6666
local $SIG{__DIE__};
6767
local $SIG{__WARN__};
68-
local @INC = @INC || ();
69-
pop @INC if $INC[-1] eq '.';
68+
local @INC = @INC;
69+
pop @INC if @INC && $INC[-1] eq '.';
7070
require Encode::ConfigLocal;
7171
};
7272

Unicode/Unicode.xs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
$Id: Unicode.xs,v 2.20 2021/07/23 02:26:54 dankogai Exp dankogai $
2+
$Id: Unicode.xs,v 2.20 2021/07/23 02:26:54 dankogai Exp $
33
*/
44

55
#define IN_UNICODE_XS

t/Unicode.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# $Id: Unicode.t,v 2.4 2021/07/23 02:26:54 dankogai Exp dankogai $
2+
# $Id: Unicode.t,v 2.4 2021/07/23 02:26:54 dankogai Exp $
33
#
44
# This script is written entirely in ASCII, even though quoted literals
55
# do include non-BMP unicode characters -- Are you happy, jhi?

0 commit comments

Comments
 (0)