-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperl5255delta.html
273 lines (173 loc) · 12.2 KB
/
perl5255delta.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:[email protected]" />
</head>
<body style="background-color: white">
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#Security">Security</a>
<ul>
<li><a href="#Escaped-colons-and-relative-paths-in-PATH">"Escaped" colons and relative paths in PATH</a></li>
</ul>
</li>
<li><a href="#Modules-and-Pragmata">Modules and Pragmata</a>
<ul>
<li><a href="#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a></li>
</ul>
</li>
<li><a href="#Documentation">Documentation</a>
<ul>
<li><a href="#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
<ul>
<li><a href="#perlinterp">perlinterp</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#Testing">Testing</a></li>
<li><a href="#Platform-Support">Platform Support</a>
<ul>
<li><a href="#Platform-Specific-Notes">Platform-Specific Notes</a></li>
</ul>
</li>
<li><a href="#Internal-Changes">Internal Changes</a></li>
<li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a></li>
<li><a href="#Obituary">Obituary</a></li>
<li><a href="#Acknowledgements">Acknowledgements</a></li>
<li><a href="#Reporting-Bugs">Reporting Bugs</a></li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>perl5255delta - what is new for perl v5.25.5</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes differences between the 5.25.4 release and the 5.25.5 release.</p>
<p>If you are upgrading from an earlier release such as 5.25.3, first read <a href="/cperl/perl5254delta.html">perl5254delta</a>, which describes differences between 5.25.3 and 5.25.4.</p>
<h1 id="Security">Security</h1>
<h2 id="Escaped-colons-and-relative-paths-in-PATH">"Escaped" colons and relative paths in PATH</h2>
<p>On Unix systems, Perl treats any relative paths in the PATH environment variable as tainted when starting a new process. Previously, it was allowing a backslash to escape a colon (unlike the OS), consequently allowing relative paths to be considered safe if the PATH was set to something like <code>/\:.</code>. The check has been fixed to treat <code>.</code> as tainted in that example.</p>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="Updated-Modules-and-Pragmata">Updated Modules and Pragmata</h2>
<ul>
<li><p><a href="/cperl/lib/Filter/Simple.html">Filter::Simple</a> has been upgraded from version 0.92 to 0.93.</p>
<p>It no longer treats <code>no MyFilter</code> immediately following <code>use MyFilter</code> as end-of-file. [perl #107726]</p>
</li>
<li><p><a href="/cperl/lib/Locale/Codes.html">Locale::Codes</a> has been upgraded from 3.39 to 3.40.</p>
</li>
<li><p><a href="/cperl/lib/Module/CoreList.html">Module::CoreList</a> has been upgraded from version 5.20160820 to 5.20160920.</p>
</li>
<li><p><a href="/cperl/lib/POSIX.html">POSIX</a> has been upgraded from version 1.71 to 1.72.</p>
</li>
<li><p><a href="/cperl/lib/Sys/Syslog.html">Sys::Syslog</a> has been upgraded from version 0.34_01 to 0.35.</p>
</li>
<li><p><a href="/cperl/lib/Test/Simple.html">Test::Simple</a> has been upgraded from version 1.302052 to 1.302056.</p>
</li>
<li><p><a href="/cperl/lib/Thread/Semaphore.html">Thread::Semaphore</a> has been upgraded from 2.12 to 2.13.</p>
<p>Added the <code>down_timed</code> method.</p>
</li>
<li><p><a href="/cperl/lib/XSLoader.html">XSLoader</a> has been upgraded from version 0.22 to 0.24.</p>
</li>
</ul>
<h1 id="Documentation">Documentation</h1>
<h2 id="Changes-to-Existing-Documentation">Changes to Existing Documentation</h2>
<h3 id="perlinterp"><a href="/cperl/perlinterp.html">perlinterp</a></h3>
<ul>
<li><p><a href="/cperl/perlinterp.html">perlinterp</a> has been expanded to give a more detailed example of how to hunt around in the parser for how a given operator is handled.</p>
</li>
</ul>
<h1 id="Testing">Testing</h1>
<ul>
<li><p><i>t/re/regexp_nonull.t</i> has been added to test that the regular expression engine can handle scalars that do not have a null byte just past the end of the string.</p>
</li>
</ul>
<h1 id="Platform-Support">Platform Support</h1>
<h2 id="Platform-Specific-Notes">Platform-Specific Notes</h2>
<dl>
<dt id="VMS">VMS</dt>
<dd>
<ul>
<li><p>The path separator for the <code>PERL5LIB</code> and <code>PERLLIB</code> environment entries is now a colon (<code>:</code>) when running under a Unix shell. There is no change when running under DCL (it's still <code>|</code>).</p>
</li>
<li><p>Remove some VMS-specific hacks from <code>showlex.t</code>. These were added 15 years ago, and are no longer necessary for any VMS version now supported.</p>
</li>
</ul>
</dd>
</dl>
<dl>
<dt id="Win32">Win32</dt>
<dd>
<ul>
<li><p>Tweaks for Win32 VC vs GCC detection makefile code. This fixes issue that CCHOME depends on CCTYPE, which in auto detect mode is set after CCHOME, so CCHOME uses the uninit CCTYPE var. Also fix else vs .ELSE in makefile.mk</p>
</li>
</ul>
</dd>
</dl>
<h1 id="Internal-Changes">Internal Changes</h1>
<ul>
<li><p>Several macros and functions have been added to the public API for dealing with Unicode and UTF-8-encoded strings. See <a href="/cperl/perlapi.html#Unicode-Support">"Unicode Support" in perlapi</a>.</p>
</li>
<li><p>Use <code>my_strlcat()</code> in <code>locale.c</code>. While <code>strcat()</code> is safe in this context, some compilers were optimizing this to <code>strcpy()</code> causing a porting test to fail that looks for unsafe code. Rather than fighting this, we just use <code>my_strlcat()</code> instead.</p>
</li>
</ul>
<h1 id="Selected-Bug-Fixes">Selected Bug Fixes</h1>
<ul>
<li><p>Invalid assignments to a reference constructor (e.g., <code>\eval=time</code>) could sometimes crash in addition to giving a syntax error. [perl #125679]</p>
</li>
<li><p>The parser could sometimes crash if a bareword came after <code>evalbytes</code>. [perl #129196]</p>
</li>
<li><p>Autoloading via a method call would warn erroneously ("Use of inherited AUTOLOAD for non-method") if there was a stub present in the package into which the invocant had been blessed. The warning is no longer emitted in such circumstances. [perl #47047]</p>
</li>
<li><p>A sub containing with a "forward" declaration with the same name (e.g., <code>sub c { sub c; }</code>) could sometimes crash or loop infinitely. [perl #129090]</p>
</li>
<li><p>The use of <code>splice</code> on arrays with nonexistent elements could cause other operators to crash. [perl #129164]</p>
</li>
<li><p>Fixed case where <code>re_untuit_start</code> will overshoot the length of a utf8 string. [perl #129012]</p>
</li>
<li><p>Handle <code>CXt_SUBST</code> better in <code>Perl_deb_stack_all</code>, previously it wasn't checking that the <i>current</i> <code>cx</code> is the right type, and instead was always checking the base <code>cx</code> (effectively a noop). [perl #129029]</p>
</li>
<li><p>Fixed two possible use-after-free bugs in <code>Perl_yylex</code>. <code>Perl_yylex</code> maintains up to two pointers into the parser buffer, one of which can become stale under the right conditions. [perl #129069]</p>
</li>
<li><p>Fixed a crash with <code>s///l</code> where it thought it was dealing with UTF-8 when it wasn't. [perl #129038]</p>
</li>
<li><p>Fixed place where regex was not setting the syntax error correctly. [perl #129122]</p>
</li>
<li><p>The <code>&.</code> operator (and the <code>&</code> operator, when it treats its arguments as strings) were failing to append a trailing null byte if at least one string was marked as utf8 internally. Many code paths (system calls, regexp compilation) still expect there to be a null byte in the string buffer just past the end of the logical string. An assertion failure was the result. [perl #129287]</p>
</li>
<li><p>Check <code>pack_sockaddr_un()</code>'s return value because <code>pack_sockaddr_un()</code> silently truncates the supplied path if it won't fit into the <code>sun_path</code> member of <code>sockaddr_un</code>. This may change in the future, but for now check the path in the<code>sockaddr</code> matches the desired path, and skip if it doesn't. [perl #128095]</p>
</li>
<li><p>Make sure <code>PL_oldoldbufptr</code> is preserved in <code>scan_heredoc()</code>. In some cases this is used in building error messages. [perl #128988]</p>
</li>
<li><p>Check for null PL_curcop in IN_LC() [perl #129106]</p>
</li>
<li><p>Fixed the parser error handling for an '<code>:attr(foo</code>' that does not have an ending '<code>)</code>'.</p>
</li>
<li><p>Fix <code>Perl_delimcpy()</code> to handle a backslash as last char, this actually fixed two bugs, [perl #129064] and [perl #129176].</p>
</li>
<li><p>[perl #129267] rework gv_fetchmethod_pvn_flags separator parsing to prevent possible string overrun with invalid len in gv.c</p>
</li>
</ul>
<h1 id="Obituary">Obituary</h1>
<p>Jon Portnoy (AVENJ), a prolific Perl author and admired Gentoo community member, has passed away on August 10, 2016. He will be remembered and missed by all those with which he came in contact and enriched with his intellect, wit, and spirit.</p>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>Perl 5.25.5 represents approximately 4 weeks of development since Perl 5.25.4 and contains approximately 67,000 lines of changes across 230 files from 25 authors.</p>
<p>Excluding auto-generated files, documentation and release tools, there were approximately 62,000 lines of changes to 160 .pm, .t, .c and .h files.</p>
<p>Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.25.5:</p>
<p>Aaron Crane, Aristotle Pagaltzis, Chris 'BinGOs' Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Collins, Daniel Dragan, Dave Cross, David Mitchell, E. Choroba, Father Chrysostomos, James E Keenan, Jerry D. Hedden, Karl Williamson, Lukas Mai, Ricardo Signes, Rick Delaney, Sawyer X, Stevan Little, Steve Hay, Sullivan Beck, Theo Buehler, Tony Cook, Yaroslav Kuzmin, Yves Orton.</p>
<p>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.</p>
<p>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.</p>
<p>For a more complete list of all of Perl's historical contributors, please see the <i>AUTHORS</i> file in the Perl source distribution.</p>
<h1 id="Reporting-Bugs">Reporting Bugs</h1>
<p>If you find what you think is a bug, you might check the perl bug database at <a href="https://rt.perl.org/">https://rt.perl.org/</a> . There may also be information at <a href="http://www.perl.org/">http://www.perl.org/</a> , the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <a>perlbug</a> 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 <code>perl -V</code>, will be sent off to [email protected] to be analysed by the Perl porting team.</p>
<p>If the bug you are reporting has security implications which make it inappropriate to send to a publicly archived mailing list, then see <a href="/cperl/perlsec.html#SECURITY-VULNERABILITY-CONTACT-INFORMATION">"SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec</a> for details of how to report the issue.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>
<p>The <i>INSTALL</i> file for how to build Perl.</p>
<p>The <i>README</i> file for general stuff.</p>
<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>
</body>
</html>