Debian Codegraph @

upstream/debian-unstable/man1/perl5223delta.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 "PERL5223DELTA 1"
58 .TH PERL5223DELTA 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 perl5223delta \- what is new for perl v5.22.3
65 .SH DESCRIPTION
66 .IX Header "DESCRIPTION"
67 This document describes differences between the 5.22.2 release and the 5.22.3
68 release.
69 .PP
70 If you are upgrading from an earlier release such as 5.22.1, first read
71 perl5222delta, which describes differences between 5.22.1 and 5.22.2.
72 .SH Security
73 .IX Header "Security"
74 .SS "\fB\-Di\fP switch is now required for PerlIO debugging output"
75 .IX Subsection "-Di switch is now required for PerlIO debugging output"
76 Previously PerlIO debugging output would be sent to the file specified by the
77 \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable if perl wasn't running setuid and the
78 \&\fB\-T\fR or \fB\-t\fR switches hadn't been parsed yet.
79 .PP
80 If perl performed output at a point where it hadn't yet parsed its switches
81 this could result in perl creating or overwriting the file named by
82 \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR even when the \fB\-T\fR switch had been supplied.
83 .PP
84 Perl now requires the \fB\-Di\fR switch to produce PerlIO debugging output. By
85 default this is written to \f(CW\*(C`stderr\*(C'\fR, but can optionally be redirected to a
86 file by setting the \f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable.
87 .PP
88 If perl is running setuid or the \fB\-T\fR switch was supplied \f(CW\*(C`PERLIO_DEBUG\*(C'\fR is
89 ignored and the debugging output is sent to \f(CW\*(C`stderr\*(C'\fR as for any other \fB\-D\fR
90 switch.
91 .SS "Core modules and tools no longer search \fI"".""\fP for optional modules"
92 .IX Subsection "Core modules and tools no longer search ""."" for optional modules"
93 The tools and many modules supplied in core no longer search the default
94 current directory entry in \f(CW@INC\fR for optional modules. For
95 example, Storable will remove the final \fI"."\fR from \f(CW@INC\fR before trying to
96 load Log::Agent.
97 .PP
98 This prevents an attacker injecting an optional module into a process run by
99 another user where the current directory is writable by the attacker, e.g. the
100 \&\fI/tmp\fR directory.
101 .PP
102 In most cases this removal should not cause problems, but difficulties were
103 encountered with base, which treats every module name supplied as optional.
104 These difficulties have not yet been resolved, so for this release there are no
105 changes to base. We hope to have a fix for base in Perl 5.22.4.
106 .PP
107 To protect your own code from this attack, either remove the default \fI"."\fR
108 entry from \f(CW@INC\fR at the start of your script, so:
109 .PP
110 .Vb 3
111 \& #!/usr/bin/perl
112 \& use strict;
113 \& ...
114 .Ve
115 .PP
116 becomes:
117 .PP
118 .Vb 4
119 \& #!/usr/bin/perl
120 \& BEGIN { pop @INC if $INC[\-1] eq \*(Aq.\*(Aq }
121 \& use strict;
122 \& ...
123 .Ve
124 .PP
125 or for modules, remove \fI"."\fR from a localized \f(CW@INC\fR, so:
126 .PP
127 .Vb 1
128 \& my $can_foo = eval { require Foo; }
129 .Ve
130 .PP
131 becomes:
132 .PP
133 .Vb 5
134 \& my $can_foo = eval {
135 \& local @INC = @INC;
136 \& pop @INC if $INC[\-1] eq \*(Aq.\*(Aq;
137 \& require Foo;
138 \& };
139 .Ve
140 .SH "Incompatible Changes"
141 .IX Header "Incompatible Changes"
142 Other than the security changes above there are no changes intentionally
143 incompatible with Perl 5.22.2. If any exist, they are bugs, and we request
144 that you submit a report. See "Reporting Bugs" below.
145 .SH "Modules and Pragmata"
146 .IX Header "Modules and Pragmata"
147 .SS "Updated Modules and Pragmata"
148 .IX Subsection "Updated Modules and Pragmata"
149 .IP \(bu 4
150 Archive::Tar has been upgraded from version 2.04 to 2.04_01.
151 .IP \(bu 4
152 bignum has been upgraded from version 0.39 to 0.39_01.
153 .IP \(bu 4
154 CPAN has been upgraded from version 2.11 to 2.11_01.
155 .IP \(bu 4
156 Digest has been upgraded from version 1.17 to 1.17_01.
157 .IP \(bu 4
158 Digest::SHA has been upgraded from version 5.95 to 5.95_01.
159 .IP \(bu 4
160 Encode has been upgraded from version 2.72 to 2.72_01.
161 .IP \(bu 4
162 ExtUtils::Command has been upgraded from version 1.20 to 1.20_01.
163 .IP \(bu 4
164 ExtUtils::MakeMaker has been upgraded from version 7.04_01 to 7.04_02.
165 .IP \(bu 4
166 File::Fetch has been upgraded from version 0.48 to 0.48_01.
167 .IP \(bu 4
168 File::Spec has been upgraded from version 3.56_01 to 3.56_02.
169 .IP \(bu 4
170 HTTP::Tiny has been upgraded from version 0.054 to 0.054_01.
171 .IP \(bu 4
172 IO has been upgraded from version 1.35 to 1.35_01.
173 .IP \(bu 4
174 The IO-Compress modules have been upgraded from version 2.068 to 2.068_001.
175 .IP \(bu 4
176 IPC::Cmd has been upgraded from version 0.92 to 0.92_01.
177 .IP \(bu 4
178 JSON::PP has been upgraded from version 2.27300 to 2.27300_01.
179 .IP \(bu 4
180 Locale::Maketext has been upgraded from version 1.26 to 1.26_01.
181 .IP \(bu 4
182 Locale::Maketext::Simple has been upgraded from version 0.21 to 0.21_01.
183 .IP \(bu 4
184 Memoize has been upgraded from version 1.03 to 1.03_01.
185 .IP \(bu 4
186 Module::CoreList has been upgraded from version 5.20160429 to 5.20170114_22.
187 .IP \(bu 4
188 Net::Ping has been upgraded from version 2.43 to 2.43_01.
189 .IP \(bu 4
190 Parse::CPAN::Meta has been upgraded from version 1.4414 to 1.4414_001.
191 .IP \(bu 4
192 Pod::Html has been upgraded from version 1.22 to 1.2201.
193 .IP \(bu 4
194 Pod::Perldoc has been upgraded from version 3.25 to 3.25_01.
195 .IP \(bu 4
196 Storable has been upgraded from version 2.53_01 to 2.53_02.
197 .IP \(bu 4
198 Sys::Syslog has been upgraded from version 0.33 to 0.33_01.
199 .IP \(bu 4
200 Test has been upgraded from version 1.26 to 1.26_01.
201 .IP \(bu 4
202 Test::Harness has been upgraded from version 3.35 to 3.35_01.
203 .IP \(bu 4
204 XSLoader has been upgraded from version 0.20 to 0.20_01, fixing a security
205 hole in which binary files could be loaded from a path outside of \f(CW@INC\fR.
206 [GH #15418] <https://github.com/Perl/perl5/issues/15418>
207 .SH Documentation
208 .IX Header "Documentation"
209 .SS "Changes to Existing Documentation"
210 .IX Subsection "Changes to Existing Documentation"
211 \fIperlapio\fR
212 .IX Subsection "perlapio"
213 .IP \(bu 4
214 The documentation of \f(CW\*(C`PERLIO_DEBUG\*(C'\fR has been updated.
215 .PP
216 \fIperlrun\fR
217 .IX Subsection "perlrun"
218 .IP \(bu 4
219 The new \fB\-Di\fR switch has been documented, and the documentation of
220 \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR has been updated.
221 .SH Testing
222 .IX Header "Testing"
223 .IP \(bu 4
224 A new test script, \fIt/run/switchDx.t\fR, has been added to test that the new
225 \&\fB\-Di\fR switch is working correctly.
226 .SH "Selected Bug Fixes"
227 .IX Header "Selected Bug Fixes"
228 .IP \(bu 4
229 The \f(CW\*(C`PadlistNAMES\*(C'\fR macro is an lvalue again.
230 .SH Acknowledgements
231 .IX Header "Acknowledgements"
232 Perl 5.22.3 represents approximately 9 months of development since Perl 5.22.2
233 and contains approximately 4,400 lines of changes across 240 files from 20
234 authors.
235 .PP
236 Excluding auto-generated files, documentation and release tools, there were
237 approximately 2,200 lines of changes to 170 .pm, .t, .c and .h files.
238 .PP
239 Perl continues to flourish into its third decade thanks to a vibrant community
240 of users and developers. The following people are known to have contributed
241 the improvements that became Perl 5.22.3:
242 .PP
243 Aaron Crane, Abigail, Alex Vandiver, Aristotle Pagaltzis, Chad Granum, Chris
244 \&'BinGOs' Williams, Craig A. Berry, David Mitchell, Father Chrysostomos, James E
245 Keenan, Jarkko Hietaniemi, Karen Etheridge, Karl Williamson, Matthew Horsfall,
246 Niko Tyni, Ricardo Signes, Sawyer X, Stevan Little, Steve Hay, Tony Cook.
247 .PP
248 The list above is almost certainly incomplete as it is automatically generated
249 from version control history. In particular, it does not include the names of
250 the (very much appreciated) contributors who reported issues to the Perl bug
251 tracker.
252 .PP
253 Many of the changes included in this version originated in the CPAN modules
254 included in Perl's core. We're grateful to the entire CPAN community for
255 helping Perl to flourish.
256 .PP
257 For a more complete list of all of Perl's historical contributors, please see
258 the \fIAUTHORS\fR file in the Perl source distribution.
259 .SH "Reporting Bugs"
260 .IX Header "Reporting Bugs"
261 If you find what you think is a bug, you might check the articles recently
262 posted to the comp.lang.perl.misc newsgroup and the Perl bug database at
263 https://rt.perl.org/ . There may also be information at http://www.perl.org/ ,
264 the Perl Home Page.
265 .PP
266 If you believe you have an unreported bug, please run the perlbug program
267 included with your release. Be sure to trim your bug down to a tiny but
268 sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
269 will be sent off to [email protected] to be analysed by the Perl porting team.
270 .PP
271 If the bug you are reporting has security implications, which make it
272 inappropriate to send to a publicly archived mailing list, then please send it
273 to perl5\-security\[email protected]. This points to a closed subscription
274 unarchived mailing list, which includes all the core committers, who will be
275 able to help assess the impact of issues, figure out a resolution, and help
276 co-ordinate the release of patches to mitigate or fix the problem across all
277 platforms on which Perl is supported. Please only use this address for
278 security issues in the Perl core, not for modules independently distributed on
279 CPAN.
280 .SH "SEE ALSO"
281 .IX Header "SEE ALSO"
282 The \fIChanges\fR file for an explanation of how to view exhaustive details on
283 what changed.
284 .PP
285 The \fIINSTALL\fR file for how to build Perl.
286 .PP
287 The \fIREADME\fR file for general stuff.
288 .PP
289 The \fIArtistic\fR and \fICopying\fR files for copyright information.