Debian Codegraph @

upstream/mageia-cauldron/man1/perl5222delta.1

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