perl5242cdelta - what is new for cperl v5.24.2
This document describes the differences between the cperl 5.24.1 and the cperl 5.24.2 releases.
Fixed heap-buffer-overflow in chdir without argument. make chdir allocate the stack it needs for the result, overwriting one stack entry. Note that the perl stack is on the heap, so it's not that dramatic. [perl #129130]
Sets $YAML::XS::DisableCode
, $YAML::XS::DisableBlessed
while parsing META.yml files. See "$YAML::XS::DisableBlessed" in YAML::XS.
Those macros clash on darwin XTools with the system iostream _OutputIterator
methods. We need to use the fullname Perl_do_open and Perl_do_close functions whenever perl needs to be embedded into C++ projects. Or the better do_openn
macro.
With the system C++ compiler on darwin do_open
, do_close
are now undefined. See [cperl #227]
Fixed CPAN::Shell-
expand("Module", "Bundle::...")> error with Bundles, a regression from 1.63 and prev. cperl releases up to 5.25.0c. cperl only.
Better 09_roundtrip.t tests.
revert base.pm incdot test change and fix properly
fix -Wc++11-compat
Fixed IsCOW savepvn, store the last cowrefcnt.
Fixed wrong savepvn length, failing with asan.
Optimized mro_isa_changed_in initialization. Added B::HV::Gv_AMG method.
Fixes heap-buffer overflow at t/c.t 11 with asan.
Fixed -lcperl for shared libcperl.
Fixed APPEND_OUTPUT logic [RT #119005]
Fixed APPEND_OUTPUT logic [RT #119007]
add fake_signatures, --regen support, support for dev versions.
And merge cpan/Parse-CPAN-Meta into it. cpan/Parse-CPAN-Meta is gone.
Parse-CPAN-Meta security: set $YAML::XS::DisableCode, $YAML::XS::DisableBlessed.
Add support for all known YAML and JSON modules: *::Syck, JSON::MaybeXS, Mojo::JSON. But JSON::Any is broken.
fixed UTF-8 issues, passes now all Test-CPAN-Meta tests.
reapply most of our patches. skip cperl builtin prereqs.
- Fixes for g++-6, stricter -fpermissive and -Wc++11-compat.
- Added tests for ill-formed utf8 sequences from Encode.
- modfl() mingw 4.0 runtime bug [perl #125924]
- Tested with the comprehensive JSON decode spectests from http://seriot.ch/parsing_json.html. Not added to core. #72
- decode with BOM: UTF-8, UTF-16, or UTF-32.
- fixed detection of final \0 as illegal non-whitespace garbage. Fixes spectest 'n_number_then_00'. #72
- warn with unicode noncharacters as in core when not in relaxed mode. #74
- fail decode of non-unicode raw characters above U+10FFFF when not in relaxed mode.
- added t/gh70-asan.t
strEQc improvements
fix correct indentation for utf-8 key hash elements, [perl #128524].
Fix -Wc++11-compat warnings, and various minor issues.
Fix -Wc++11-compat warnings.
prevented shasum from possibly running malicious code, remove '.' from @INC before module loading RT #116513, namespace cleanup (RT #105371 and #105372), minor code and documentation tweaks
Fixed build dependency for dlboot.c. No excessive rebuilds anymore.
various upstream fixes. plus g++-6 -fpermissive and -Wc++11-compat fixes. our local make -s silent patches and various others are now all upstream.
* Set a cleaned env when running git clone * Changed git repository link in tests * Removed consistently failing httpbin.org tests * Require Module::Load::Conditional 0.66 * Fix FTP tests for ipv6
* RT #114999 fix :number * RT #113748 fix VersionMessage ignores -output argument * RT #39052 sanify gnu_getopt
Many fixes und improvements
Fix -Wc++11-compat warnings. Print empty arrays and hashes as such.
- Support setting custom socket options with new Sockopts constructor parameter
- Restore blocking mode after ->connect errors [cpan #112334]
set $Module::Load::Conditional::FORCE_SAFE_INC = 1
Fixed true/false redefinition warnings.
- Remove . from @INC when loading optional modules. [Tony Cook, Perl RT#127834, CVE-2016-1238]
- Increased minimum required version of IO::Socket::IP to 0.25 to hopefully stop t/pop3_ipv6.t hanging. [CPAN RT#104545]
- Debug output now includes decoded (from base64) negotiation for SASL. [Philip Prindeville, PR#27]
- plus the suse utf8 fixes for Net::Cmd, see 5bd7010cb and our darwin performance fix for hostname.
Added Czech republic aliases back in Lot of new codes.
Fix optional runtime load for CVE-2016-1238
Add blacklist and whitelist support, with perl #127923 priority. See "BRACKET NOTATION SECURITY" in Locale::Maketext
with our t/ skip count fixes.
Fix unconditional @INC localisation, Add FORCE_SAFE_INC option to fix CVE-2016-1238.
- Fix file operation in tests for VMS
- use a more strict matching heuristic when attempting to infer the "primary" module name in a parsed .pm file
- only report "main" as the module name if code was seen outside another namespace, fixing bad results for pod files (RT#107525)
Fixed missing _unpack_sockaddr_in
family, which took AF_INET6 for a AF_INET addr in t/500_ping_icmp.t and t/500_ping_icmp_ttl.t. Use now a proper default. Detected by the new gitlab ci.
Fixed _pack_sockaddr_in
for a proper 2nd argument type, hash or packed address.
Improved 500_ping_icmp.t to try sudo -n
(no prompt). [RT #118451]
Relaxed more tests failing with firewalled icmp on localhost. [RT #118441]
Fixed ping_external argument type, either packed ip or hostname. [RT #113825]
Fixed wrong skip message in t/020_external.t
Doc and meta changes only.
improved t/parent-pmc.t, excluded new xt tests
Added msys
Many Pod::Man bugfixes and new tests. See https://metacpan.org/changes/distribution/podlators
Fix broken test on Windows and FreeBSD (RT#116551) Fix CVE-2016-1238 by temporarily removing '.' from @INC in world writable directories. Fix =head3 appearing in some perlfunc lookups AmigaOS patches (RT#106798) (RT#110368) Fall back to an English perlfunc if translation doesn't exist (RT#104695) FreeBSD has mandoc too, with UTF-8 support. -U now documented and implied with -F (RT#87837)
Improved parallel testing, relative testdir/test$$.lib. See [RT #118416].
Fix -Wc++11-compat warnings. Prepare for handling NUL in names for cperl-5.25.2
Fix -Wc++11-compat warnings.
CVE-2016-1238: avoid loading optional modules from default . (Tony Cook). Patch rewrote to no longer depend upon @INC. See https://metacpan.org/changes/distribution/Sys-Syslog
Kept our smoker logic in t/syslog.t, for slow darwin systems, the suse patch and disabled the lexical filehandle patch.
Add aliases ansi16 through ansi255 and on_ansi16 through on_ansi255 (plus the corresponding constants) for the grey and rgb colors so that one can refer to all of the 256 ANSI colors with consistent names. These are aliases; the colors returned by uncolor will still use the grey and rgb names. (#118267)
ReadKey.pm renamed to ReadKey_pm.PL, expand blockoptions specific variants already at installation, no load-time eval, demand-load Carp, remove unneeded AutoLoader, harmonize formatting.
patch: use faster StructCopy and fixup the XS.
improved blockoptions probe when dynaloading fails.
Added down_timed
method.
merge with cpan 1.9741
Fix -Wc++11-compat warnings Keep our better C++ fixes Keep our t/usleep.t, t/alarm.t, t/utime.t fixes. Keep our do_openn improvements in typemap. Skip t/utime.t on ext2/ext3
from upstream:
- El Capitan compatibility - use CLOCK_REALTIME for clock_nanosleep scan - include file consistency in scans - use clockid_t consistently - use hv_fetchs() - scan for clockid_t (needed for macos Sierra) - darwin lacks clockid_t [rt.cpan.org #129789]
Less runtime memory: demand-load Carp, Config. reformatted
Many new locales. Some major fixes.
Merge latest version with the '_' lyon concensus with the cperl extension of the optional final 'c' suffix. Extend version::regex for cperl. Now also parse the 'c' natively.
fixed encoding issues: fixed wrong $YAML::XS::Encoding and $YAML::XS::LineBreak comparison logic. fixed utf8 input as handled as UTF8, non-utf8 honors $YAML::XS::Encoding.
fixed -Wunused value warnings
merged with upstream YAML-LibYAML, implemented $DisableBlessed (security).
Probe for llabs()
needed for PERL_IABS on 32bit with -Duse64bitint, the default on mingw/cygwin. Defines HAS_LLABS
.
Added t/porting/embedcpp.t to check for perl.h C++ compatibility with a modern C++ compiler. There must be no fatal compilation errors in the -c
step from C++ incompatibilities in any header file.
This is related to the new -Wc++11-compat
and -fpermissive
fixes.
Note that Microsoft Visual C++ still throws errors. You cannot use that yet. See [cperl #227].
Fixed the range unicode bug. When the right side of the range is a UTF-8 encoded string, but the left side not, downgrade the right side to native octets. E.g.
my $r = chr 255; utf8::upgrade $r; my $num = ("a" .. $r);
print $num
should print 26 but does 702, because the utf-8 repr. of \x{ff}
is "\303\277" [UTF8 "\x{ff}"]
, and the range was incremented from "a" to "\x{c3}\x{bf}" instead. See [cperl #218].
Fixed several issues with -Duseshrplib
, a shared libcperl.$so:
install it (!!) (cperl only), fix ExtUtils::Embed and B-C compilation and testing, fix tests on darwin, fix configuration probe of Term::ReadKey.
Fixed a cperl-only failure in signatures with default blocks introducing a new lexical variable. As in sub t151($a,$b=do{my $f},$c=1){} t151($x,$x,$x)
. This failure was only fatal on 32bit + -Duse64bitint systems.
SIGNATURE_arg_default_op
does not have a items arg. See [cperl #164]. and [cperl #213].
v-strings with a 'c' suffix can now be parsed natively, in scan_vstring()
. See [cperl #211].
For open cperl problems see [issues].
Some of these fixes also can to be backported from perl5.25.x upstream.
until ($x = 1) { ... }
and ... until $x = 1
should warn when syntax warnings are enabled. [perl #127333]
${\vec %h, 0, 1}
and ${\substr %h, 0}
should not segfault, rather the lvalue context should be propagated, and list context properly handled. [perl #128260]
The perl debugger doesn't yet work with signatures. It doesn't step into such functions and it may fail. See e.g. [cperl #167]
clang -flto=thin
and on some systems even gcc -flto
with -O3
or -finline
leads to invisible symbols which were inlined and not exported, even if they should be declared as public API. This is fixed in v5.25.2c.
Perl 5.24.2 represents approximately 2 months of development since Perl 5.24.1c and contains approximately 170,000 lines of changes across 720 files from 4 authors.
Excluding auto-generated files, documentation and release tools, there were approximately 93,000 lines of changes to 420 .pm, .t, .c and .h files.
The following people are known to have contributed the improvements that became Perl 5.24.2:
Reini Urban, Tony Cook, Yves Orton, Hugo van der Sanden.
The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.
Many of the changes included in this version originated in the CPAN modules included in Perl's core. We're grateful to the entire CPAN community for helping Perl to flourish.
For a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl source distribution.
Generated with:
cperl Porting/acknowledgements.pl cperl-5.24.1..HEAD
If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at https://rt.perl.org/ . There may also be information at http://www.perl.org/ , the Perl Home Page.
If you believe you have an unreported bug, please run the perlbug program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of perl -V
, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
If you think it's a cperl specific bug or trust the cperl developers more please file an issue at https://github.com/perl11/cperl/issues. The p5p bug tracker is explicitly blocked for cperl developers, so we cannot see it there until it is fixed, which might need several years. p5p ignores any cperl bugfixes, so you might want to report it twice.
If the bug you are reporting has security implications which make it inappropriate to send to a publicly archived mailing list, then see "SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec For details of how to report the issue.
The Changes file for an explanation of how to view exhaustive details on what changed.
The INSTALL file for how to build Perl.
The README file for general stuff.
The Artistic and Copying files for copyright information.