perl5222delta (1) Linux Manual Page
NAME
perl5222delta – what is new for perl v5.22.2
DESCRIPTION
This document describes differences between the 5.22.1 release and the 5.22.2 release.
If you are upgrading from an earlier release such as 5.22.0, first read perl5221delta, which describes differences between 5.22.0 and 5.22.1.
Security
Fix out of boundary access in Win32 path handling
This is CVE-2015-8608. For more information see [perl #126755] <https://rt.perl.org/Ticket/Display.html?id=126755>.
Fix loss of taint in canonpath()
This is CVE-2015-8607. For more information see [perl #126862] <https://rt.perl.org/Ticket/Display.html?id=126862>.
Set proper umask before calling mkstemp(3)
In 5.22.0 perl started setting umask to 0600 before calling mkstemp(3) and restoring it afterwards. This wrongfully tells open(2) to strip the owner read and write bits from the given mode before applying it, rather than the intended negation of leaving only those bits in place.
Systems that use mode 0666 in mkstemp(3) (like old versions of glibc) create a file with permissions 0066, leaving world read and write permissions regardless of current umask.
This has been fixed by using umask 0177 instead.
[perl #127322] <https://rt.perl.org/Ticket/Display.html?id=127322>
Avoid accessing uninitialized memory in Win32 crypt()
Validation that will detect both a short salt and invalid characters in the salt has been added.
[perl #126922] <https://rt.perl.org/Ticket/Display.html?id=126922>
Remove duplicate environment variables from environ
Previously, if an environment variable appeared more than once in "environ[]", %ENV would contain the last entry for that name, while a typical "getenv()" would return the first entry. We now make sure %ENV contains the same as what "getenv()" returns.
Secondly, we now remove duplicates from "environ[]", so if a setting with that name is set in %ENV we won’t pass an unsafe value to a child process.
This is CVE-2016-2381.
Incompatible Changes
There are no changes intentionally incompatible with Perl 5.22.1. If any exist, they are bugs, and we request that you submit a report. See “Reporting Bugs” below.
Modules and Pragmata
Updated Modules and Pragmata
- •
- File::Spec has been upgraded from version 3.56 to 3.56_01.
"canonpath()" now preserves taint. See "Fix loss of taint in "canonpath()"".
- •
- Module::CoreList has been upgraded from version 5.20151213 to 5.20160429.
The version number of Digest::SHA listed for Perl 5.18.4 was wrong and has been corrected. Likewise for the version number of Config in 5.18.3 and 5.18.4. [perl #127624] <https://rt.perl.org/Ticket/Display.html?id=127624>
Documentation
Changes to Existing Documentation
perldiag
- •
- The explanation of the warning “unable to close filehandle %s properly: %s” which can occur when doing an implicit close of a filehandle has been expanded and improved.
perlfunc
- •
- The documentation of "hex()" has been revised to clarify valid inputs.
Configuration and Compilation
- •
- Dtrace builds now build successfully on systems with a newer dtrace that require an input object file that uses the probes in the .d file.
Previously the probe would fail and cause a build failure.
[perl #122287] <https://rt.perl.org/Ticket/Display.html?id=122287>
- •
- Configure no longer probes for libnm by default. Originally this was the “New Math” library, but the name has been re-used by the GNOME NetworkManager.
[perl #127131] <https://rt.perl.org/Ticket/Display.html?id=127131>
- •
- Configure now knows about gcc 5.
- •
- Compiling perl with
-DPERL_MEM_LOGnow works again.
Platform Support
Platform-Specific Notes
- Darwin
- Compiling perl with
-Dusecbacktraceon Darwin now works again.[perl #127764] <https://rt.perl.org/Ticket/Display.html?id=127764>
- OS X/Darwin
- Builds with both
-DDEBUGGINGand threading enabled would fail with a “panic: free from wrong pool” error when built or tested from Terminal on OS X. This was caused by perl’s internal management of the environment conflicting with an atfork handler using the libc "setenv()" function to update the environment.Perl now uses "setenv()"/"unsetenv()" to update the environment on OS X.
[perl #126240] <https://rt.perl.org/Ticket/Display.html?id=126240>
- ppc64el
- The floating point format of ppc64el (Debian naming for little-endian PowerPC) is now detected correctly.
- Tru64
- A test failure in t/porting/extrefs.t has been fixed.
Internal Changes
- •
- An unwarranted assertion in "Perl_newATTRSUB_x()" has been removed. If a stub subroutine definition with a prototype has been seen, then any subsequent stub (or definition) of the same subroutine with an attribute was causing an assertion failure because of a null pointer.
[perl #126845] <https://rt.perl.org/Ticket/Display.html?id=126845>
Selected Bug Fixes
- •
- Calls to the placeholder &PL_sv_yes used internally when an "import()" or "unimport()" method isn’t found now correctly handle scalar context. [perl #126042] <https://rt.perl.org/Ticket/Display.html?id=126042>
- •
- The "pipe()" operator would assert for "DEBUGGING" builds instead of producing the correct error message. The condition asserted on is detected and reported on correctly without the assertions, so the assertions were removed. [perl #126480] <https://rt.perl.org/Ticket/Display.html?id=126480>
- •
- In some cases, failing to parse a here-doc would attempt to use freed memory. This was caused by a pointer not being restored correctly. [perl #126443] <https://rt.perl.org/Ticket/Display.html?id=126443>
- •
- Perl now reports more context when it sees an array where it expects to see an operator, and avoids an assertion failure. [perl #123737] <https://rt.perl.org/Ticket/Display.html?id=123737>
- •
- If a here-doc was found while parsing another operator, the parser had already read end of file, and the here-doc was not terminated, perl could produce an assertion or a segmentation fault. This now reliably complains about the unterminated here-doc. [perl #125540] <https://rt.perl.org/Ticket/Display.html?id=125540>
- •
- Parsing beyond the end of the buffer when processing a "#line" directive with no filename is now avoided. [perl #127334] <https://rt.perl.org/Ticket/Display.html?id=127334>
- •
- Perl 5.22.0 added support for the C99 hexadecimal floating point notation, but sometimes misparsed hex floats. This has been fixed. [perl #127183] <https://rt.perl.org/Ticket/Display.html?id=127183>
- •
- Certain regex patterns involving a complemented posix class in an inverted bracketed character class, and matching something else optionally would improperly fail to match. An example of one that could fail is "qr/_?[^\Wbar]
