Debian Codegraph @

upstream/debian-unstable/man1/perl5222delta.1

raw
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 "PERL5222DELTA 1"
58 .TH PERL5222DELTA 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 perl5222delta \- what is new for perl v5.22.2
65 .SH DESCRIPTION
66 .IX Header "DESCRIPTION"
67 This document describes differences between the 5.22.1 release and the 5.22.2
68 release.
69 .PP
70 If you are upgrading from an earlier release such as 5.22.0, first read
71 perl5221delta, which describes differences between 5.22.0 and 5.22.1.
72 .SH Security
73 .IX Header "Security"
74 .SS "Fix out of boundary access in Win32 path handling"
75 .IX Subsection "Fix out of boundary access in Win32 path handling"
76 This is CVE\-2015\-8608. For more information see
77 [GH #15067] <https://github.com/Perl/perl5/issues/15067>.
78 .ie n .SS "Fix loss of taint in canonpath()"
79 .el .SS "Fix loss of taint in \f(CWcanonpath()\fP"
80 .IX Subsection "Fix loss of taint in canonpath()"
81 This is CVE\-2015\-8607. For more information see
82 [GH #15084] <https://github.com/Perl/perl5/issues/15084>.
83 .ie n .SS "Set proper umask before calling mkstemp(3)"
84 .el .SS "Set proper umask before calling \f(CWmkstemp(3)\fP"
85 .IX Subsection "Set proper umask before calling mkstemp(3)"
86 In 5.22.0 perl started setting umask to \f(CW0600\fR before calling \f(CWmkstemp(3)\fR
87 and restoring it afterwards. This wrongfully tells \f(CWopen(2)\fR to strip the
88 owner read and write bits from the given mode before applying it, rather than
89 the intended negation of leaving only those bits in place.
90 .PP
91 Systems that use mode \f(CW0666\fR in \f(CWmkstemp(3)\fR (like old versions of glibc)
92 create a file with permissions \f(CW0066\fR, leaving world read and write permissions
93 regardless of current umask.
94 .PP
95 This has been fixed by using umask \f(CW0177\fR instead.
96 .PP
97 [GH #15135] <https://github.com/Perl/perl5/issues/15135>
98 .ie n .SS "Avoid accessing uninitialized memory in Win32 crypt()"
99 .el .SS "Avoid accessing uninitialized memory in Win32 \f(CWcrypt()\fP"
100 .IX Subsection "Avoid accessing uninitialized memory in Win32 crypt()"
101 Validation that will detect both a short salt and invalid characters in the
102 salt has been added.
103 .PP
104 [GH #15091] <https://github.com/Perl/perl5/issues/15091>
105 .ie n .SS "Remove duplicate environment variables from ""environ"""
106 .el .SS "Remove duplicate environment variables from \f(CWenviron\fP"
107 .IX Subsection "Remove duplicate environment variables from environ"
108 Previously, if an environment variable appeared more than once in \f(CW\*(C`environ[]\*(C'\fR,
109 \&\f(CW%ENV\fR would contain the last entry for that name, while a
110 typical \f(CWgetenv()\fR would return the first entry. We now make sure \f(CW%ENV\fR
111 contains the same as what \f(CWgetenv()\fR returns.
112 .PP
113 Secondly, we now remove duplicates from \f(CW\*(C`environ[]\*(C'\fR, so if a setting with that
114 name is set in \f(CW%ENV\fR we won't pass an unsafe value to a child process.
115 .PP
116 This is CVE\-2016\-2381.
117 .SH "Incompatible Changes"
118 .IX Header "Incompatible Changes"
119 There are no changes intentionally incompatible with Perl 5.22.1. If any
120 exist, they are bugs, and we request that you submit a report. See
121 "Reporting Bugs" below.
122 .SH "Modules and Pragmata"
123 .IX Header "Modules and Pragmata"
124 .SS "Updated Modules and Pragmata"
125 .IX Subsection "Updated Modules and Pragmata"
126 .IP \(bu 4
127 File::Spec has been upgraded from version 3.56 to 3.56_01.
128 .Sp
129 \&\f(CWcanonpath()\fR now preserves taint. See "Fix loss of taint in
130 \&\f(CWcanonpath()\fR".
131 .IP \(bu 4
132 Module::CoreList has been upgraded from version 5.20151213 to 5.20160429.
133 .Sp
134 The version number of Digest::SHA listed for Perl 5.18.4 was wrong and has
135 been corrected. Likewise for the version number of Config in 5.18.3 and
136 5.18.4.
137 [GH #15202] <https://github.com/Perl/perl5/issues/15202>
138 .SH Documentation
139 .IX Header "Documentation"
140 .SS "Changes to Existing Documentation"
141 .IX Subsection "Changes to Existing Documentation"
142 \fIperldiag\fR
143 .IX Subsection "perldiag"
144 .IP \(bu 4
145 The explanation of the warning "unable to close filehandle \f(CW%s\fR properly: \f(CW%s\fR"
146 which can occur when doing an implicit close of a filehandle has been expanded
147 and improved.
148 .PP
149 \fIperlfunc\fR
150 .IX Subsection "perlfunc"
151 .IP \(bu 4
152 The documentation of \f(CWhex()\fR has been revised to clarify valid
153 inputs.
154 .SH "Configuration and Compilation"
155 .IX Header "Configuration and Compilation"
156 .IP \(bu 4
157 Dtrace builds now build successfully on systems with a newer dtrace that
158 require an input object file that uses the probes in the \fI.d\fR file.
159 .Sp
160 Previously the probe would fail and cause a build failure.
161 .Sp
162 [GH #13985] <https://github.com/Perl/perl5/issues/13985>
163 .IP \(bu 4
164 \&\fIConfigure\fR no longer probes for \fIlibnm\fR by default. Originally this was the
165 "New Math" library, but the name has been re-used by the GNOME NetworkManager.
166 .Sp
167 [GH #15115] <https://github.com/Perl/perl5/issues/15115>
168 .IP \(bu 4
169 \&\fIConfigure\fR now knows about gcc 5.
170 .IP \(bu 4
171 Compiling perl with \fB\-DPERL_MEM_LOG\fR now works again.
172 .SH "Platform Support"
173 .IX Header "Platform Support"
174 .SS "Platform-Specific Notes"
175 .IX Subsection "Platform-Specific Notes"
176 .IP Darwin 4
177 .IX Item "Darwin"
178 Compiling perl with \fB\-Dusecbacktrace\fR on Darwin now works again.
179 .Sp
180 [GH #15245] <https://github.com/Perl/perl5/issues/15245>
181 .IP "OS X/Darwin" 4
182 .IX Item "OS X/Darwin"
183 Builds with both \fB\-DDEBUGGING\fR and threading enabled would fail with a "panic:
184 free from wrong pool" error when built or tested from Terminal on OS X. This
185 was caused by perl's internal management of the environment conflicting with an
186 atfork handler using the libc \f(CWsetenv()\fR function to update the environment.
187 .Sp
188 Perl now uses \f(CWsetenv()\fR/\f(CWunsetenv()\fR to update the environment on OS X.
189 .Sp
190 [GH #14955] <https://github.com/Perl/perl5/issues/14955>
191 .IP ppc64el 4
192 .IX Item "ppc64el"
193 The floating point format of ppc64el (Debian naming for little-endian PowerPC)
194 is now detected correctly.
195 .IP Tru64 4
196 .IX Item "Tru64"
197 A test failure in \fIt/porting/extrefs.t\fR has been fixed.
198 .SH "Internal Changes"
199 .IX Header "Internal Changes"
200 .IP \(bu 4
201 An unwarranted assertion in \f(CWPerl_newATTRSUB_x()\fR has been removed. If a stub
202 subroutine definition with a prototype has been seen, then any subsequent stub
203 (or definition) of the same subroutine with an attribute was causing an
204 assertion failure because of a null pointer.
205 .Sp
206 [GH #15081] <https://github.com/Perl/perl5/issues/15081>
207 .SH "Selected Bug Fixes"
208 .IX Header "Selected Bug Fixes"
209 .IP \(bu 4
210 Calls to the placeholder \f(CW&PL_sv_yes\fR used internally when an \f(CWimport()\fR or
211 \&\f(CWunimport()\fR method isn't found now correctly handle scalar context.
212 [GH #14902] <https://github.com/Perl/perl5/issues/14902>
213 .IP \(bu 4
214 The \f(CWpipe()\fR operator would assert for \f(CW\*(C`DEBUGGING\*(C'\fR builds
215 instead of producing the correct error message. The condition asserted on is
216 detected and reported on correctly without the assertions, so the assertions
217 were removed.
218 [GH #15015] <https://github.com/Perl/perl5/issues/15015>
219 .IP \(bu 4
220 In some cases, failing to parse a here-doc would attempt to use freed memory.
221 This was caused by a pointer not being restored correctly.
222 [GH #15009] <https://github.com/Perl/perl5/issues/15009>
223 .IP \(bu 4
224 Perl now reports more context when it sees an array where it expects to see an
225 operator, and avoids an assertion failure.
226 [GH #14472] <https://github.com/Perl/perl5/issues/14472>
227 .IP \(bu 4
228 If a here-doc was found while parsing another operator, the parser had already
229 read end of file, and the here-doc was not terminated, perl could produce an
230 assertion or a segmentation fault. This now reliably complains about the
231 unterminated here-doc.
232 [GH #14789] <https://github.com/Perl/perl5/issues/14789>
233 .IP \(bu 4
234 Parsing beyond the end of the buffer when processing a \f(CW\*(C`#line\*(C'\fR directive with
235 no filename is now avoided.
236 [GH #15139] <https://github.com/Perl/perl5/issues/15139>
237 .IP \(bu 4
238 Perl 5.22.0 added support for the C99 hexadecimal floating point notation, but
239 sometimes misparsed hex floats. This has been fixed.
240 [GH #15120] <https://github.com/Perl/perl5/issues/15120>
241 .IP \(bu 4
242 Certain regex patterns involving a complemented posix class in an inverted
243 bracketed character class, and matching something else optionally would
244 improperly fail to match. An example of one that could fail is
245 \&\f(CW\*(C`qr/_?[^\eWbar]\ex{100}/\*(C'\fR. This has been fixed.
246 [GH #15181] <https://github.com/Perl/perl5/issues/15181>
247 .IP \(bu 4
248 Fixed an issue with \f(CWpack()\fR where \f(CW\*(C`pack "H"\*(C'\fR (and
249 \&\f(CW\*(C`pack "h"\*(C'\fR) could read past the source when given a non\-utf8 source and a
250 utf8 target.
251 [GH #14977] <https://github.com/Perl/perl5/issues/14977>
252 .IP \(bu 4
253 Fixed some cases where perl would abort due to a segmentation fault, or a
254 C\-level assert.
255 [GH #14941] <https://github.com/Perl/perl5/issues/14941>
256 [GH #14962] <https://github.com/Perl/perl5/issues/14962>
257 [GH #14963] <https://github.com/Perl/perl5/issues/14963>
258 [GH #14997] <https://github.com/Perl/perl5/issues/14997>
259 [GH #15039] <https://github.com/Perl/perl5/issues/15039>
260 [GH #15247] <https://github.com/Perl/perl5/issues/15247>
261 [GH #15251] <https://github.com/Perl/perl5/issues/15251>
262 .IP \(bu 4
263 A memory leak when setting \f(CW$ENV{foo}\fR on Darwin has been fixed.
264 [GH #14955] <https://github.com/Perl/perl5/issues/14955>
265 .IP \(bu 4
266 Perl now correctly raises an error when trying to compile patterns with
267 unterminated character classes while there are trailing backslashes.
268 [GH #14919] <https://github.com/Perl/perl5/issues/14919>
269 .IP \(bu 4
270 \&\f(CW\*(C`NOTHING\*(C'\fR regops and \f(CW\*(C`EXACTFU_SS\*(C'\fR regops in \f(CWmake_trie()\fR are now handled
271 properly.
272 [GH #14945] <https://github.com/Perl/perl5/issues/14945>
273 .IP \(bu 4
274 Perl now only tests \f(CWsemctl()\fR if we have everything needed to use it. In
275 FreeBSD the \f(CWsemctl()\fR entry point may exist, but it can be disabled by
276 policy.
277 [GH #15180] <https://github.com/Perl/perl5/issues/15180>
278 .IP \(bu 4
279 A regression that allowed undeclared barewords as hash keys to work despite
280 strictures has been fixed.
281 [GH #15099] <https://github.com/Perl/perl5/issues/15099>
282 .IP \(bu 4
283 As an optimization (introduced in Perl 5.20.0), \f(CWuc()\fR,
284 \&\f(CWlc()\fR, \f(CWucfirst()\fR and
285 \&\f(CWlcfirst()\fR sometimes modify their argument in-place
286 rather than returning a modified copy. The criteria for this optimization has
287 been made stricter to avoid these functions accidentally modifying in-place
288 when they should not, which has been happening in some cases, e.g. in
289 List::Util.
290 .IP \(bu 4
291 Excessive memory usage in the compilation of some regular expressions involving
292 non-ASCII characters has been reduced. A more complete fix is forthcoming in
293 Perl 5.24.0.
294 .SH Acknowledgements
295 .IX Header "Acknowledgements"
296 Perl 5.22.2 represents approximately 5 months of development since Perl 5.22.1
297 and contains approximately 3,000 lines of changes across 110 files from 24
298 authors.
299 .PP
300 Excluding auto-generated files, documentation and release tools, there were
301 approximately 1,500 lines of changes to 52 .pm, .t, .c and .h files.
302 .PP
303 Perl continues to flourish into its third decade thanks to a vibrant community
304 of users and developers. The following people are known to have contributed
305 the improvements that became Perl 5.22.2:
306 .PP
307 Aaron Crane, Abigail, Andreas König, Aristotle Pagaltzis, Chris 'BinGOs'
308 Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, David Golden, David
309 Mitchell, H.Merijn Brand, James E Keenan, Jarkko Hietaniemi, Karen Etheridge,
310 Karl Williamson, Matthew Horsfall, Niko Tyni, Ricardo Signes, Sawyer X, Stevan
311 Little, Steve Hay, Todd Rinaldo, Tony Cook, Vladimir Timofeev, Yves Orton.
312 .PP
313 The list above is almost certainly incomplete as it is automatically generated
314 from version control history. In particular, it does not include the names of
315 the (very much appreciated) contributors who reported issues to the Perl bug
316 tracker.
317 .PP
318 Many of the changes included in this version originated in the CPAN modules
319 included in Perl's core. We're grateful to the entire CPAN community for
320 helping Perl to flourish.
321 .PP
322 For a more complete list of all of Perl's historical contributors, please see
323 the \fIAUTHORS\fR file in the Perl source distribution.
324 .SH "Reporting Bugs"
325 .IX Header "Reporting Bugs"
326 If you find what you think is a bug, you might check the articles recently
327 posted to the comp.lang.perl.misc newsgroup and the perl bug database at
328 https://rt.perl.org/ . There may also be information at http://www.perl.org/ ,
329 the Perl Home Page.
330 .PP
331 If you believe you have an unreported bug, please run the perlbug program
332 included with your release. Be sure to trim your bug down to a tiny but
333 sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
334 will be sent off to [email protected] to be analysed by the Perl porting team.
335 .PP
336 If the bug you are reporting has security implications, which make it
337 inappropriate to send to a publicly archived mailing list, then please send it
338 to perl5\-security\[email protected]. This points to a closed subscription
339 unarchived mailing list, which includes all the core committers, who will be
340 able to help assess the impact of issues, figure out a resolution, and help
341 co-ordinate the release of patches to mitigate or fix the problem across all
342 platforms on which Perl is supported. Please only use this address for
343 security issues in the Perl core, not for modules independently distributed on
344 CPAN.
345 .SH "SEE ALSO"
346 .IX Header "SEE ALSO"
347 The \fIChanges\fR file for an explanation of how to view exhaustive details on
348 what changed.
349 .PP
350 The \fIINSTALL\fR file for how to build Perl.
351 .PP
352 The \fIREADME\fR file for general stuff.
353 .PP
354 The \fIArtistic\fR and \fICopying\fR files for copyright information.