-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperl5225cdelta.html
416 lines (271 loc) · 15.6 KB
/
perl5225cdelta.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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<?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>perl5225cdelta - what is new for cperl v5.22.5</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:[email protected]" />
</head>
<body>
<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="#n-buffer-overflows">@{ \327 \n } buffer overflows</a></li>
<li><a href="#eval-q-.-chr-overlarge-stack-overflow">eval "q" . chr(overlarge) stack overflow</a></li>
<li><a href="#Set-umask-0600-before-calling-mkstemp">Set umask(0600) before calling mkstemp</a></li>
<li><a href="#Disallow-illegal-glob-with-embedded-NUL">Disallow illegal glob with embedded NUL</a></li>
<li><a href="#Follow-chroot-with-chdir">Follow chroot with chdir("/")</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="#Utility-Changes">Utility Changes</a>
<ul>
<li><a href="#installperl">installperl</a></li>
</ul>
</li>
<li><a href="#Testing">Testing</a></li>
<li><a href="#Internal-Changes">Internal Changes</a></li>
<li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</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>perl5225cdelta - what is new for cperl v5.22.5</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes perl-only differences between the cperl 5.22.4 release and the cperl 5.22.5 release.</p>
<p>For <b>cperl</b> also see <i>Changes</i> and <a href="/cperl/perlcperl.html">perlcperl</a></p>
<h1 id="Security">Security</h1>
<h2 id="n-buffer-overflows"><code>@{ \327 \n }</code> buffer overflows</h2>
<p>Fixed <code>@{ \327 \n }</code> tokenizer failures and heap buffer overflows in <code>sv_vcatpvfn_flags()</code> with wrong tracking of <code>PL_linestr</code>, the currently parsed line buffer. This can easily lead to security relevant exploits.</p>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128951">[perl #128951]</a></p>
<h2 id="eval-q-.-chr-overlarge-stack-overflow"><code>eval "q" . chr(overlarge)</code> stack overflow</h2>
<p>In <code>eval "q" . chr(100000000064)</code> generating the error message <code>Can't find string terminator "XXX"'</code> was overrunning a local buffer designed to hold a single utf8 char, since it wasn't allowing for the <code>\0</code> at the end.</p>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128952">[perl #128952]</a></p>
<h2 id="Set-umask-0600-before-calling-mkstemp">Set umask(0600) before calling mkstemp</h2>
<p>POSIX 2008 demands such an umask, but it is still problematic on Solaris, HP-UX and AIX and older libcs, e.g. glibc <= 2.06. The old umask 0177 was insecure.</p>
<h2 id="Disallow-illegal-glob-with-embedded-NUL">Disallow illegal glob with embedded NUL</h2>
<p>E.g. <code><$fh\000></code> throws now the safe syscalls warning, and errors with <code>Glob not terminated</code>, and does not pass the illegal glob path to the internal or external glob.</p>
<p>See <a href="https://github.com/perl11/cperl/issues/342">[cperl #342]</a></p>
<h2 id="Follow-chroot-with-chdir">Follow chroot with chdir("/")</h2>
<p>Fixed two security issues with the chroot op:</p>
<p>* fail on embedded NUL in the chroot argument. Set <code>errno</code> to EINVAL.</p>
<p>* If a call to chroot is not followed by a call to chdir("/") the chroot jail confinement can be violated. In Perl_pp_chroot: A call to chroot followed by an operation that may escape from the chroot jail. Coverity CID #165302 Insecure chroot.</p>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="Updated-Modules-and-Pragmata">Updated Modules and Pragmata</h2>
<dl>
<dt id="Archive::Tar-2.26"><a href="/cperl/lib/Archive/Tar.html">Archive::Tar</a> 2.26</dt>
<dd>
<p>'0' is a valid name for an archive, change 'iter' to check definedness. See <a href="https://metacpan.org/changes/distribution/Archive-Tar">https://metacpan.org/changes/distribution/Archive-Tar</a></p>
</dd>
<dt id="B::C-1.55_06"><a href="/cperl/lib/B/C.html">B::C</a> 1.55_06</dt>
<dd>
<p>Better CopFILE_set, Fixup arenasize refcnt. Delay cvref to init2, properly set a SvRV to a XS sub. Optimize constpv for CvFILE (less constants to merge for gcc). Improve NV precision by one digit. Fix to compile in utf8_heavy.pl, abstract and set %INC. Fix generation of @B::C::Config::deps on Windows. Fix !C99 precedence bug (e.g. MSVC). Minor refactor to simplify save_hek. Use the new get_svs, get_avs, get_hvs macros.</p>
</dd>
<dt id="B::Debug-1.26"><a>B::Debug</a> 1.26</dt>
<dd>
</dd>
<dt id="bignum-0.47"><a href="/cperl/lib/bignum.html">bignum</a> 0.47</dt>
<dd>
</dd>
<dt id="Config-6.23"><a href="/cperl/lib/Config.html">Config</a> 6.23</dt>
<dd>
<p>U32_MAX keys on 64bit. Better gperf and C++ support. Add --regen.</p>
</dd>
<dt id="CPAN-2.18_01"><a href="/cperl/lib/CPAN.html">CPAN</a> 2.18_01</dt>
<dd>
<p>Update from upstream 2.16, plus keep our cperl and secure YAML:::XS support.</p>
</dd>
<dt id="CPAN::Meta-2.150010c"><a href="/cperl/lib/CPAN/Meta.html">CPAN::Meta</a> 2.150010c</dt>
<dd>
<p>Merged with <a href="/cperl/lib/Parse/CPAN/Meta.html">Parse::CPAN::Meta</a>, <i>cpan/Parse-CPAN-Meta</i> is gone.</p>
</dd>
<dt id="Cpanel::JSON::XS-3.0240"><a href="/cperl/lib/Cpanel/JSON/XS.html">Cpanel::JSON::XS</a> 3.0240</dt>
<dd>
<p>Update from upstream</p>
</dd>
<dt id="experimental-0.019_01c"><a href="/cperl/lib/experimental.html">experimental</a> 0.019_01c</dt>
<dd>
</dd>
<dt id="ExtUtils::MM_Unix-8.04_04"><a href="/cperl/lib/ExtUtils/MM_Unix.html">ExtUtils::MM_Unix</a> 8.04_04</dt>
<dd>
<p>Support filehandles for <code>MM->parse_version</code>.</p>
</dd>
<dt id="ExtUtils::Liblist::Kid-8.04_06"><a>ExtUtils::Liblist::Kid</a> 8.04_06</dt>
<dd>
<p>Silence No library found errors on darwin for libSystem.dylib libs.</p>
</dd>
<dt id="HTTP::Tiny-0.070"><a href="/cperl/lib/HTTP/Tiny.html">HTTP::Tiny</a> 0.070</dt>
<dd>
</dd>
<dt id="IO-1.38"><a href="/cperl/lib/IO.html">IO</a> 1.38</dt>
<dd>
<p>from latest cperl.</p>
</dd>
<dt id="IO::Socket::IP-0.39"><a href="/cperl/lib/IO/Socket/IP.html">IO::Socket::IP</a> 0.39</dt>
<dd>
</dd>
<dt id="JSON::PP-2.97000_04"><a href="/cperl/lib/JSON/PP.html">JSON::PP</a> 2.97000_04</dt>
<dd>
<p>Merge 2.97000 from cpan with ours.</p>
</dd>
<dt id="Math::BigInt-1.999811"><a href="/cperl/lib/Math/BigInt.html">Math::BigInt</a> 1.999811</dt>
<dd>
</dd>
<dt id="Math::BigRat-0.2613"><a href="/cperl/lib/Math/BigRat.html">Math::BigRat</a> 0.2613</dt>
<dd>
</dd>
<dt id="Module::CoreList-5.20180101c"><a href="/cperl/lib/Module/CoreList.html">Module::CoreList</a> 5.20180101c</dt>
<dd>
<p>backported from latest cperl, TieHashDelta is now unused.</p>
</dd>
<dt id="parent-0.236"><a href="/cperl/lib/parent.html">parent</a> 0.236</dt>
<dd>
<p>Without <code>'</code> as pkg separator.</p>
</dd>
<dt id="Perl::OSType-1.010"><a href="/cperl/lib/Perl/OSType.html">Perl::OSType</a> 1.010</dt>
<dd>
<p>Added msys</p>
</dd>
<dt id="podlators-4.09">podlators 4.09</dt>
<dd>
<p>Added all the man tests from upstream</p>
</dd>
<dt id="Pod::Perldoc-3.2801"><a href="/cperl/lib/Pod/Perldoc.html">Pod::Perldoc</a> 3.2801</dt>
<dd>
</dd>
<dt id="Pod::Simple-3.35"><a href="/cperl/lib/Pod/Simple.html">Pod::Simple</a> 3.35</dt>
<dd>
</dd>
<dt id="Pod::Usage-1.69"><a href="/cperl/lib/Pod/Usage.html">Pod::Usage</a> 1.69</dt>
<dd>
</dd>
<dt id="Scalar::Util-1.49_10"><a href="/cperl/lib/Scalar/Util.html">Scalar::Util</a> 1.49_10</dt>
<dd>
</dd>
<dt id="SelfLoader-1.24"><a href="/cperl/lib/SelfLoader.html">SelfLoader</a> 1.24</dt>
<dd>
</dd>
<dt id="SelectSaver-1.02_01"><a href="/cperl/lib/SelectSaver.html">SelectSaver</a> 1.02_01</dt>
<dd>
<p>3-arg open</p>
</dd>
<dt id="Socket-2.024_02"><a href="/cperl/lib/Socket.html">Socket</a> 2.024_02</dt>
<dd>
<p>Merge cpan 2.024 with our 2.021_02, plus fix some problems in their new code.</p>
</dd>
<dt id="Sys::Syslog-0.35"><a href="/cperl/lib/Sys/Syslog.html">Sys::Syslog</a> 0.35</dt>
<dd>
</dd>
<dt id="Term::ANSIColor-4.06"><a href="/cperl/lib/Term/ANSIColor.html">Term::ANSIColor</a> 4.06</dt>
<dd>
</dd>
<dt id="Term::ReadKey-2.37_03"><a href="/cperl/lib/Term/ReadKey.html">Term::ReadKey</a> 2.37_03</dt>
<dd>
<p>from cperl 5.27.3c</p>
</dd>
<dt id="Test::Harness-3.39"><a href="/cperl/lib/Test/Harness.html">Test::Harness</a> 3.39</dt>
<dd>
<p>Fix and re-enable <i>t/regression.t</i></p>
</dd>
<dt id="Thread::Queue-3.12"><a href="/cperl/lib/Thread/Queue.html">Thread::Queue</a> 3.12</dt>
<dd>
</dd>
<dt id="Thread::Semaphore-2.13"><a href="/cperl/lib/Thread/Semaphore.html">Thread::Semaphore</a> 2.13</dt>
<dd>
</dd>
<dt id="threads-2.18_01"><a href="/cperl/lib/threads.html">threads</a> 2.18_01</dt>
<dd>
</dd>
<dt id="threads::shared-1.57"><a href="/cperl/lib/threads/shared.html">threads::shared</a> 1.57</dt>
<dd>
</dd>
<dt id="Time::HiRes-1.9747_01"><a href="/cperl/lib/Time/HiRes.html">Time::HiRes</a> 1.9747_01</dt>
<dd>
<p>More Darwin thread fixes for clock_gettime, Sierra support, test improvements.</p>
</dd>
<dt id="Time::Local-1.25"><a href="/cperl/lib/Time/Local.html">Time::Local</a> 1.25</dt>
<dd>
<p>Less runtime memory: demand-load Carp, Config</p>
</dd>
<dt id="Time::Piece-1.3203"><a href="/cperl/lib/Time/Piece.html">Time::Piece</a> 1.3203</dt>
<dd>
</dd>
<dt id="Unicode::Collate-1.25"><a href="/cperl/lib/Unicode/Collate.html">Unicode::Collate</a> 1.25</dt>
<dd>
</dd>
<dt id="version-0.9918_02c"><a href="/cperl/lib/version.html">version</a> 0.9918_02c</dt>
<dd>
<p>With the LYON concensus, affecting some tests with alpha versions. e.g. <code>v1.1_0</code> does not warn anymore.</p>
</dd>
<dt id="YAML::LibYAML-0.75"><a>YAML::LibYAML</a> 0.75</dt>
<dd>
</dd>
</dl>
<h1 id="Utility-Changes">Utility Changes</h1>
<h2 id="installperl"><i>installperl</i></h2>
<ul>
<li><p>Fixed cperl.exe and cperl*.lib installation on windows.</p>
</li>
</ul>
<h1 id="Testing">Testing</h1>
<ul>
<li><p><i>t/porting/cmp_version.t</i> was fixed together with EUMM to handle parsing versions from filehandles. Backported.</p>
</li>
</ul>
<h1 id="Internal-Changes">Internal Changes</h1>
<p>Changes which affect the interface available to <code>XS</code> code go here. Other significant internal changes for future core maintainers should be noted as well.</p>
<ul>
<li><p><code>SvREADONLY_off(sv)</code> is only usable as statement, not as expression anymore. It broke Sun C 5.12, in ByteLoader. See <a href="https://github.com/perl11/cperl/issues/183">[cperl #183]</a>.</p>
</li>
</ul>
<h1 id="Selected-Bug-Fixes">Selected Bug Fixes</h1>
<dl>
<dt id="aelem_u:-fix-loop-oob-for-padav">aelem_u: fix loop oob for padav</dt>
<dd>
<p>Out-of-bounds check elimination in loops has been fixed for lexical counters. E.g. with <code>my @a=(0..4); for my $i (0..$#a) { $a[$i] }</code> each access to <code>$a[$i]</code> in the loop is now really converted to the unchecked faster <b>aelem_u</b> op.</p>
<p>Note that multideref ops are not yet converted to omit out-of-bounds checks. This is only implemented since cperl-5.25, since it needs to widen the internal mderef structure.</p>
</dd>
<dt id="fixed--DH-crash-on-clear">fixed -DH crash on clear</dt>
<dd>
<p>When clearing a hv (with refcnt 0), HvKEYS crashed with an invalid mg on a placeholder. Just use HvTOTALKEYS instead.</p>
</dd>
<dt id="Check-for-null-in-pp_ghostent-et-al">Check for null in pp_ghostent et al.</dt>
<dd>
<p>Specifically in the <code>S_space_join_names_mortal</code> static function that several pp functions call. On some platforms (such as Gentoo Linux with torsocks), <code>hent->h_aliases</code> (where <code>hent</code> is a <code>struct hostent *</code>) may be null after a <code>gethostent</code> call.</p>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128740">[perl #128740]</a></p>
</dd>
<dt id="DynaLoader::dl_find_symbol_anywhere">DynaLoader::dl_find_symbol_anywhere</dt>
<dd>
<p>Fixed return type of <code>DynaLoader::dl_find_symbol_anywhere()</code>, the address, not the name. <a href="https://github.com/perl11/cperl/issues/352">[cperl #352]</a>.</p>
</dd>
</dl>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>cperl 5.22.5 represents approximately 17 months of development since cperl 5.22.4c and contains approximately 140,000 lines of changes across 880 files from 3 authors.</p>
<p>Excluding auto-generated files, documentation and release tools, there were approximately 54,000 lines of changes to 600 .pm, .t, .c and .h files.</p>
<p>The following people are known to have contributed the improvements that became cperl 5.22.5:</p>
<p>Reini Urban, Slaven Rezic, Father Chrysostomos.</p>
<p>The list above is almost certainly incomplete as it is automatically generated from version control history including the perl and cperl repos. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker and the cperl github issues.</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>
<p>Generated with:</p>
<pre><code> cperl Porting/acknowledgements.pl cperl-5.22.4..HEAD -c</code></pre>
<h1 id="Reporting-Bugs">Reporting Bugs</h1>
<p>If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at https://rt.perl.org/ . There may also be information at http://www.perl.org/ , the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <i>perlbug</i> 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 you think it's a cperl specific bug or trust the cperl developers more please file an issue at <a href="https://github.com/perl11/cperl/issues">https://github.com/perl11/cperl/issues</a>.</p>
<p>If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to [email protected]. This points to a closed subscription unarchived mailing list, which includes all the core committers, who will be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please only use this address for security issues in the Perl core, not for modules independently distributed on CPAN.</p>
<p>If you trust the cperl developers more, please send an email to them. The p5p security teams skips many security issues, or are unwilling to fix them.</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>