Skip to content

Commit

Permalink
version 3.12 to address CVE-2021-36770
Browse files Browse the repository at this point in the history
  • Loading branch information
dankogai committed Aug 9, 2021
1 parent 0935b48 commit 527e482
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Revision history for Perl extension Encode.
#
# $Id: Changes,v 3.11 2021/07/23 02:26:54 dankogai Exp dankogai $
# $Id: Changes,v 3.12 2021/08/09 14:17:04 dankogai Exp dankogai $
#
$Revision: 3.11 $ $Date: 2021/07/23 02:26:54 $
$Revision: 3.12 $ $Date: 2021/08/09 14:17:04 $
! Encode.pm
Address CVE-2021-36770
<9639159a-d070-4762-9cbd-f1622f10449c@beta.fastmail.com>
3.11 2021/07/23 02:26:54
! Unicode/Unicode.xs
+ t/Unicode_trailing_nul.t
Pulled: Ensure that UTF-16 decode always includes a trailing NUL.
Expand Down
8 changes: 4 additions & 4 deletions Encode.pm
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#
# $Id: Encode.pm,v 3.11 2021/07/23 02:26:02 dankogai Exp $
# $Id: Encode.pm,v 3.12 2021/08/09 14:17:04 dankogai Exp dankogai $
#
package Encode;
use strict;
use warnings;
use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};
our $VERSION;
BEGIN {
$VERSION = sprintf "%d.%02d", q$Revision: 3.11 $ =~ /(\d+)/g;
$VERSION = sprintf "%d.%02d", q$Revision: 3.12 $ =~ /(\d+)/g;
require XSLoader;
XSLoader::load( __PACKAGE__, $VERSION );
}
Expand Down Expand Up @@ -65,8 +65,8 @@ require Encode::Config;
eval {
local $SIG{__DIE__};
local $SIG{__WARN__};
local @INC = @INC || ();
pop @INC if $INC[-1] eq '.';
local @INC = @INC;
pop @INC if @INC && $INC[-1] eq '.';
require Encode::ConfigLocal;
};

Expand Down
2 changes: 1 addition & 1 deletion Unicode/Unicode.xs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
$Id: Unicode.xs,v 2.20 2021/07/23 02:26:54 dankogai Exp dankogai $
$Id: Unicode.xs,v 2.20 2021/07/23 02:26:54 dankogai Exp $
*/

#define IN_UNICODE_XS
Expand Down
2 changes: 1 addition & 1 deletion t/Unicode.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# $Id: Unicode.t,v 2.4 2021/07/23 02:26:54 dankogai Exp dankogai $
# $Id: Unicode.t,v 2.4 2021/07/23 02:26:54 dankogai Exp $
#
# This script is written entirely in ASCII, even though quoted literals
# do include non-BMP unicode characters -- Are you happy, jhi?
Expand Down

0 comments on commit 527e482

Please sign in to comment.