| 1 |
.\" -*- mode: troff; coding: utf-8 -*- |
| 2 |
.\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) |
| 3 |
.\" |
| 4 |
.\" Standard preamble: |
| 5 |
.\" ======================================================================== |
| 6 |
.de Sp \" Vertical space (when we can't use .PP) |
| 7 |
.if t .sp .5v |
| 8 |
.if n .sp |
| 9 |
.. |
| 10 |
.de Vb \" Begin verbatim text |
| 11 |
.ft CW |
| 12 |
.nf |
| 13 |
.ne \\$1 |
| 14 |
.. |
| 15 |
.de Ve \" End verbatim text |
| 16 |
.ft R |
| 17 |
.fi |
| 18 |
.. |
| 19 |
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. |
| 20 |
.ie n \{\ |
| 21 |
. ds C` "" |
| 22 |
. ds C' "" |
| 23 |
'br\} |
| 24 |
.el\{\ |
| 25 |
. ds C` |
| 26 |
. ds C' |
| 27 |
'br\} |
| 28 |
.\" |
| 29 |
.\" Escape single quotes in literal strings from groff's Unicode transform. |
| 30 |
.ie \n(.g .ds Aq \(aq |
| 31 |
.el .ds Aq ' |
| 32 |
.\" |
| 33 |
.\" If the F register is >0, we'll generate index entries on stderr for |
| 34 |
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index |
| 35 |
.\" entries marked with X<> in POD. Of course, you'll have to process the |
| 36 |
.\" output yourself in some meaningful fashion. |
| 37 |
.\" |
| 38 |
.\" Avoid warning from groff about undefined register 'F'. |
| 39 |
.de IX |
| 40 |
.. |
| 41 |
.nr rF 0 |
| 42 |
.if \n(.g .if rF .nr rF 1 |
| 43 |
.if (\n(rF:(\n(.g==0)) \{\ |
| 44 |
. if \nF \{\ |
| 45 |
. de IX |
| 46 |
. tm Index:\\$1\t\\n%\t"\\$2" |
| 47 |
.. |
| 48 |
. if !\nF==2 \{\ |
| 49 |
. nr % 0 |
| 50 |
. nr F 2 |
| 51 |
. \} |
| 52 |
. \} |
| 53 |
.\} |
| 54 |
.rr rF |
| 55 |
.\" ======================================================================== |
| 56 |
.\" |
| 57 |
.IX Title "PERL5125DELTA 1" |
| 58 |
.TH PERL5125DELTA 1 2025-11-16 "perl v5.40.1" "Perl Programmers Reference Guide" |
| 59 |
.\" For nroff, turn off justification. Always turn off hyphenation; it makes |
| 60 |
.\" way too many mistakes in technical documents. |
| 61 |
.if n .ad l |
| 62 |
.nh |
| 63 |
.SH NAME |
| 64 |
perl5125delta \- what is new for perl v5.12.5 |
| 65 |
.SH DESCRIPTION |
| 66 |
.IX Header "DESCRIPTION" |
| 67 |
This document describes differences between the 5.12.4 release and |
| 68 |
the 5.12.5 release. |
| 69 |
.PP |
| 70 |
If you are upgrading from an earlier release such as 5.12.3, first read |
| 71 |
perl5124delta, which describes differences between 5.12.3 and |
| 72 |
5.12.4. |
| 73 |
.SH Security |
| 74 |
.IX Header "Security" |
| 75 |
.ie n .SS """Encode"" decode_xs n\-byte heap-overflow (CVE\-2011\-2939)" |
| 76 |
.el .SS "\f(CWEncode\fP decode_xs n\-byte heap-overflow (CVE\-2011\-2939)" |
| 77 |
.IX Subsection "Encode decode_xs n-byte heap-overflow (CVE-2011-2939)" |
| 78 |
A bug in \f(CW\*(C`Encode\*(C'\fR could, on certain inputs, cause the heap to overflow. |
| 79 |
This problem has been corrected. Bug reported by Robert Zacek. |
| 80 |
.ie n .SS "File::Glob::bsd_glob() memory error with GLOB_ALTDIRFUNC (CVE\-2011\-2728)" |
| 81 |
.el .SS "\f(CWFile::Glob::bsd_glob()\fP memory error with GLOB_ALTDIRFUNC (CVE\-2011\-2728)" |
| 82 |
.IX Subsection "File::Glob::bsd_glob() memory error with GLOB_ALTDIRFUNC (CVE-2011-2728)" |
| 83 |
Calling \f(CW\*(C`File::Glob::bsd_glob\*(C'\fR with the unsupported flag GLOB_ALTDIRFUNC would |
| 84 |
cause an access violation / segfault. A Perl program that accepts a flags value from |
| 85 |
an external source could expose itself to denial of service or arbitrary code |
| 86 |
execution attacks. There are no known exploits in the wild. The problem has been |
| 87 |
corrected by explicitly disabling all unsupported flags and setting unused function |
| 88 |
pointers to null. Bug reported by Clément Lecigne. |
| 89 |
.SS "Heap buffer overrun in 'x' string repeat operator (CVE\-2012\-5195)" |
| 90 |
.IX Subsection "Heap buffer overrun in 'x' string repeat operator (CVE-2012-5195)" |
| 91 |
Poorly written perl code that allows an attacker to specify the count to |
| 92 |
perl's 'x' string repeat operator can already cause a memory exhaustion |
| 93 |
denial-of-service attack. A flaw in versions of perl before 5.15.5 can |
| 94 |
escalate that into a heap buffer overrun; coupled with versions of glibc |
| 95 |
before 2.16, it possibly allows the execution of arbitrary code. |
| 96 |
.PP |
| 97 |
This problem has been fixed. |
| 98 |
.SH "Incompatible Changes" |
| 99 |
.IX Header "Incompatible Changes" |
| 100 |
There are no changes intentionally incompatible with 5.12.4. If any |
| 101 |
exist, they are bugs and reports are welcome. |
| 102 |
.SH "Modules and Pragmata" |
| 103 |
.IX Header "Modules and Pragmata" |
| 104 |
.SS "Updated Modules" |
| 105 |
.IX Subsection "Updated Modules" |
| 106 |
\fIB::Concise\fR |
| 107 |
.IX Subsection "B::Concise" |
| 108 |
.PP |
| 109 |
B::Concise no longer produces mangled output with the \fB\-tree\fR option |
| 110 |
[perl #80632]. |
| 111 |
.PP |
| 112 |
\fIcharnames\fR |
| 113 |
.IX Subsection "charnames" |
| 114 |
.PP |
| 115 |
A regression introduced in Perl 5.8.8 has been fixed, that caused |
| 116 |
\&\f(CWcharnames::viacode(0)\fR to return \f(CW\*(C`undef\*(C'\fR instead of the string "NULL" |
| 117 |
[perl #72624]. |
| 118 |
.PP |
| 119 |
\fIEncode has been upgraded from version 2.39 to version 2.39_01\fR |
| 120 |
.IX Subsection "Encode has been upgraded from version 2.39 to version 2.39_01" |
| 121 |
.PP |
| 122 |
See "Security". |
| 123 |
.PP |
| 124 |
\fIFile::Glob has been upgraded from version 1.07 to version 1.07_01\fR |
| 125 |
.IX Subsection "File::Glob has been upgraded from version 1.07 to version 1.07_01" |
| 126 |
.PP |
| 127 |
See "Security". |
| 128 |
.PP |
| 129 |
\fIUnicode::UCD\fR |
| 130 |
.IX Subsection "Unicode::UCD" |
| 131 |
.PP |
| 132 |
The documentation for the \f(CW\*(C`upper\*(C'\fR function now actually says "upper", not |
| 133 |
"lower". |
| 134 |
.PP |
| 135 |
\fIModule::CoreList\fR |
| 136 |
.IX Subsection "Module::CoreList" |
| 137 |
.PP |
| 138 |
Module::CoreList has been updated to version 2.50_02 to add data for |
| 139 |
this release. |
| 140 |
.SH "Changes to Existing Documentation" |
| 141 |
.IX Header "Changes to Existing Documentation" |
| 142 |
.SS perlebcdic |
| 143 |
.IX Subsection "perlebcdic" |
| 144 |
The perlebcdic document contains a helpful table to use in \f(CW\*(C`tr///\*(C'\fR to |
| 145 |
convert between EBCDIC and Latin1/ASCII. Unfortunately, the table was the |
| 146 |
inverse of the one it describes. This has been corrected. |
| 147 |
.SS perlunicode |
| 148 |
.IX Subsection "perlunicode" |
| 149 |
The section on |
| 150 |
User-Defined Case Mappings had |
| 151 |
some bad markup and unclear sentences, making parts of it unreadable. This |
| 152 |
has been rectified. |
| 153 |
.SS perluniprops |
| 154 |
.IX Subsection "perluniprops" |
| 155 |
This document has been corrected to take non-ASCII platforms into account. |
| 156 |
.SH "Installation and Configuration Improvements" |
| 157 |
.IX Header "Installation and Configuration Improvements" |
| 158 |
.SS "Platform Specific Changes" |
| 159 |
.IX Subsection "Platform Specific Changes" |
| 160 |
.IP "Mac OS X" 4 |
| 161 |
.IX Item "Mac OS X" |
| 162 |
There have been configuration and test fixes to make Perl build cleanly on |
| 163 |
Lion and Mountain Lion. |
| 164 |
.IP NetBSD 4 |
| 165 |
.IX Item "NetBSD" |
| 166 |
The NetBSD hints file was corrected to be compatible with NetBSD 6.* |
| 167 |
.SH "Selected Bug Fixes" |
| 168 |
.IX Header "Selected Bug Fixes" |
| 169 |
.IP \(bu 4 |
| 170 |
\&\f(CW\*(C`chop\*(C'\fR now correctly handles characters above "\ex{7fffffff}" |
| 171 |
[perl #73246]. |
| 172 |
.IP \(bu 4 |
| 173 |
\&\f(CW\*(C`($<,$>) = (...)\*(C'\fR stopped working properly in 5.12.0. It is supposed |
| 174 |
to make a single \f(CWsetreuid()\fR call, rather than calling \f(CWsetruid()\fR and |
| 175 |
\&\f(CWseteuid()\fR separately. Consequently it did not work properly. This has |
| 176 |
been fixed [perl #75212]. |
| 177 |
.IP \(bu 4 |
| 178 |
Fixed a regression of \fBkill()\fR when a match variable is used for the |
| 179 |
process ID to kill [perl #75812]. |
| 180 |
.IP \(bu 4 |
| 181 |
\&\f(CW\*(C`UNIVERSAL::VERSION\*(C'\fR no longer leaks memory. It started leaking in Perl |
| 182 |
5.10.0. |
| 183 |
.IP \(bu 4 |
| 184 |
The C\-level \f(CW\*(C`my_strftime\*(C'\fR functions no longer leaks memory. This fixes a |
| 185 |
memory leak in \f(CW\*(C`POSIX::strftime\*(C'\fR [perl #73520]. |
| 186 |
.IP \(bu 4 |
| 187 |
\&\f(CW\*(C`caller\*(C'\fR no longer leaks memory when called from the DB package if |
| 188 |
\&\f(CW@DB::args\fR was assigned to after the first call to \f(CW\*(C`caller\*(C'\fR. Carp |
| 189 |
was triggering this bug [perl #97010]. |
| 190 |
.IP \(bu 4 |
| 191 |
Passing to \f(CW\*(C`index\*(C'\fR an offset beyond the end of the string when the string |
| 192 |
is encoded internally in UTF8 no longer causes panics [perl #75898]. |
| 193 |
.IP \(bu 4 |
| 194 |
Syntax errors in \f(CW\*(C`(?{...})\*(C'\fR blocks in regular expressions no longer |
| 195 |
cause panic messages [perl #2353]. |
| 196 |
.IP \(bu 4 |
| 197 |
Perl 5.10.0 introduced some faulty logic that made "U*" in the middle of |
| 198 |
a pack template equivalent to "U0" if the input string was empty. This has |
| 199 |
been fixed [perl #90160]. |
| 200 |
.SH Errata |
| 201 |
.IX Header "Errata" |
| 202 |
.ie n .SS "\fBsplit()\fP and @_" |
| 203 |
.el .SS "\fBsplit()\fP and \f(CW@_\fP" |
| 204 |
.IX Subsection "split() and @_" |
| 205 |
\&\fBsplit()\fR no longer modifies \f(CW@_\fR when called in scalar or void context. |
| 206 |
In void context it now produces a "Useless use of split" warning. |
| 207 |
This is actually a change introduced in perl 5.12.0, but it was missed from |
| 208 |
that release's perl5120delta. |
| 209 |
.SH Acknowledgements |
| 210 |
.IX Header "Acknowledgements" |
| 211 |
Perl 5.12.5 represents approximately 17 months of development since Perl 5.12.4 |
| 212 |
and contains approximately 1,900 lines of changes across 64 files from 18 |
| 213 |
authors. |
| 214 |
.PP |
| 215 |
Perl continues to flourish into its third decade thanks to a vibrant community |
| 216 |
of users and developers. The following people are known to have contributed the |
| 217 |
improvements that became Perl 5.12.5: |
| 218 |
.PP |
| 219 |
Andy Dougherty, Chris 'BinGOs' Williams, Craig A. Berry, David Mitchell, |
| 220 |
Dominic Hargreaves, Father Chrysostomos, Florian Ragwitz, George Greer, Goro |
| 221 |
Fuji, Jesse Vincent, Karl Williamson, Leon Brocard, Nicholas Clark, Rafael |
| 222 |
Garcia-Suarez, Reini Urban, Ricardo Signes, Steve Hay, Tony Cook. |
| 223 |
.PP |
| 224 |
The list above is almost certainly incomplete as it is automatically generated |
| 225 |
from version control history. In particular, it does not include the names of |
| 226 |
the (very much appreciated) contributors who reported issues to the Perl bug |
| 227 |
tracker. |
| 228 |
.PP |
| 229 |
Many of the changes included in this version originated in the CPAN modules |
| 230 |
included in Perl's core. We're grateful to the entire CPAN community for |
| 231 |
helping Perl to flourish. |
| 232 |
.PP |
| 233 |
For a more complete list of all of Perl's historical contributors, please see |
| 234 |
the \fIAUTHORS\fR file in the Perl source distribution. |
| 235 |
.SH "Reporting Bugs" |
| 236 |
.IX Header "Reporting Bugs" |
| 237 |
If you find what you think is a bug, you might check the articles |
| 238 |
recently posted to the comp.lang.perl.misc newsgroup and the perl |
| 239 |
bug database at http://rt.perl.org/perlbug/ . There may also be |
| 240 |
information at http://www.perl.org/ , the Perl Home Page. |
| 241 |
.PP |
| 242 |
If you believe you have an unreported bug, please run the \fBperlbug\fR |
| 243 |
program included with your release. Be sure to trim your bug down |
| 244 |
to a tiny but sufficient test case. Your bug report, along with the |
| 245 |
output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to [email protected] to be |
| 246 |
analysed by the Perl porting team. |
| 247 |
.PP |
| 248 |
If the bug you are reporting has security implications, which make it |
| 249 |
inappropriate to send to a publicly archived mailing list, then please send |
| 250 |
it to perl5\-security\[email protected]. This points to a closed subscription |
| 251 |
unarchived mailing list, which includes all the core committers, who be able |
| 252 |
to help assess the impact of issues, figure out a resolution, and help |
| 253 |
co-ordinate the release of patches to mitigate or fix the problem across all |
| 254 |
platforms on which Perl is supported. Please only use this address for |
| 255 |
security issues in the Perl core, not for modules independently |
| 256 |
distributed on CPAN. |
| 257 |
.SH "SEE ALSO" |
| 258 |
.IX Header "SEE ALSO" |
| 259 |
The \fIChanges\fR file for an explanation of how to view exhaustive details |
| 260 |
on what changed. |
| 261 |
.PP |
| 262 |
The \fIINSTALL\fR file for how to build Perl. |
| 263 |
.PP |
| 264 |
The \fIREADME\fR file for general stuff. |
| 265 |
.PP |
| 266 |
The \fIArtistic\fR and \fICopying\fR files for copyright information. |