-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperl5262cdelta.html
363 lines (234 loc) · 16.4 KB
/
perl5262cdelta.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
<?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>perl5262cdelta - what is new for cperl v5.26.2</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="#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>
<li><a href="#CVE-2017-12837-Heap-buffer-overflow-in-regular-expression-compiler">[CVE-2017-12837] Heap buffer overflow in regular expression compiler</a></li>
<li><a href="#CVE-2017-12883-Buffer-over-read-in-regular-expression-parser">[CVE-2017-12883] Buffer over-read in regular expression parser</a></li>
<li><a href="#CVE-2017-12814-ENV-key-stack-buffer-overflow-on-Windows">[CVE-2017-12814] $ENV{$key} stack buffer overflow on Windows</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="#Selected-Bug-Fixes">Selected Bug Fixes</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="#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>perl5262cdelta - what is new for cperl v5.26.2</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes the differences between the cperl 5.26.1c and the cperl 5.26.2c releases.</p>
<p>If you are upgrading from an earlier release such as v5.26.0c, first read the <a href="/cperl/perl5261cdelta.html">perl5261cdelta</a> documentation, which describes differences between v5.26.0c and v5.26.1c.</p>
<h1 id="Security">Security</h1>
<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>
<h2 id="CVE-2017-12837-Heap-buffer-overflow-in-regular-expression-compiler">[CVE-2017-12837] Heap buffer overflow in regular expression compiler</h2>
<p>Compiling certain regular expression patterns with the case-insensitive modifier could cause a heap buffer overflow and crash perl. This has now been fixed. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131582">[perl #131582]</a></p>
<h2 id="CVE-2017-12883-Buffer-over-read-in-regular-expression-parser">[CVE-2017-12883] Buffer over-read in regular expression parser</h2>
<p>For certain types of syntax error in a regular expression pattern, the error message could either contain the contents of a random, possibly large, chunk of memory, or could crash perl. This has now been fixed. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131598">[perl #131598]</a></p>
<h2 id="CVE-2017-12814-ENV-key-stack-buffer-overflow-on-Windows">[CVE-2017-12814] <code>$ENV{$key}</code> stack buffer overflow on Windows</h2>
<p>A possible stack buffer overflow in the <code>%ENV</code> code on Windows has been fixed by removing the buffer completely since it was superfluous anyway. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131665">[perl #131665]</a></p>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="Updated-Modules-and-Pragmata">Updated Modules and Pragmata</h2>
<dl>
<dt id="B::Debug-1.26"><a>B::Debug</a> 1.26</dt>
<dd>
</dd>
<dt id="charnames-1.45"><a href="/cperl/lib/charnames.html">charnames</a> 1.45</dt>
<dd>
</dd>
<dt id="Compress::Raw::Zlib-2.076"><a href="/cperl/lib/Compress/Raw/Zlib.html">Compress::Raw::Zlib</a> 2.076</dt>
<dd>
<p>Silence gcc compiler warnings when -Wsign-compare is enabled #123688: Compilation warnings with clang</p>
<p>Silence gcc compiler warnings when -Wimplicit-fallthrough is enabled #123358: Compilation warnings with gcc-7.*</p>
<p>Windows uses -lzlib. Linux uses -lz #123699: wrong external zlib name used on Windows</p>
<p>Update zlib-src directory to use zlib 1.2.11 #123245: perl 5.26.1 is vulnerable to CVE-2016-9843, CVE-2016-9841, CVE-2016-9840, CVE-2016-9842</p>
<p>Don't allow offset to be greater than length of buffer in crc32.</p>
<p>Change my_zcalloc to use safecalloc. The link, <a href="https://github.com/madler/zlib/issues/253">https://github.com/madler/zlib/issues/253</a>, is the upstream report for the remaining valgrind errors not already dealt with by 1.2.11. Using calloc in Zlib.xs for now as a workaround. #121074: valgrind errors in the test suite</p>
</dd>
<dt id="Config-6.23"><a>Config</a> 6.23</dt>
<dd>
</dd>
<dt id="Config::Perl::V-0.29_01"><a href="/cperl/lib/Config/Perl/V.html">Config::Perl::V</a> 0.29_01</dt>
<dd>
<pre><code> * Add test for 5.26.1-RC1, and some cperl -V's
* Fix signature with argument
* Ignore ccache and compiler path in signature
* Add default_inc_excludes_dot</code></pre>
</dd>
<dt id="Cpanel::JSON::XS-3.0240"><a href="/cperl/lib/Cpanel/JSON/XS.html">Cpanel::JSON::XS</a> 3.0240</dt>
<dd>
</dd>
<dt id="Digest::SHA-6.01"><a href="/cperl/lib/Digest/SHA.html">Digest::SHA</a> 6.01</dt>
<dd>
</dd>
<dt id="Encode-2.93"><a href="/cperl/lib/Encode.html">Encode</a> 2.93</dt>
<dd>
<p>lib/Encode/MIME/Name.pm t/mime-name.t Pulled: Add "euc-cn" => "EUC-CN" alias to Encode::MIME::Name <a href="https://github.com/dankogai/p5-encode/pull/124">https://github.com/dankogai/p5-encode/pull/124</a></p>
<p>lib/Encode/CN/HZ.pm lib/Encode/JP/JIS7.pm lib/Encode/MIME/Header.pm t/decode.t Pulled: Uninitialized value fixes #122 <a href="https://github.com/dankogai/p5-encode/pull/122">https://github.com/dankogai/p5-encode/pull/122</a></p>
<p>Makefile.PL Pulled: Fix -Werror=declaration-after-statement for gcc 4.1.2 <a href="https://github.com/dankogai/p5-encode/pull/121">https://github.com/dankogai/p5-encode/pull/121</a></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::CBuilder-0.280230"><a href="/cperl/lib/ExtUtils/CBuilder.html">ExtUtils::CBuilder</a> 0.280230</dt>
<dd>
<p>use vars => our</p>
</dd>
<dt id="ExtUtils::Constant-0.24_01"><a href="/cperl/lib/ExtUtils/Constant.html">ExtUtils::Constant</a> 0.24_01</dt>
<dd>
<p>C++ compat fixes. -Wliteral-suffix</p>
<p>better machine code on threaded perl (croak_nocontext)</p>
</dd>
<dt id="ExtUtils::ParseXS-3.36_03"><a href="/cperl/lib/ExtUtils/ParseXS.html">ExtUtils::ParseXS</a> 3.36_03</dt>
<dd>
<p>skip <code>PUTBACK;return;</code> on XSRETURN in PPCODE</p>
<p>remove perl5 incompatible <code>__attribute__global__</code> needed for -flto. <code>XS_EXTERNAL</code> has it already.</p>
</dd>
<dt id="File::Fetch-0.56"><a href="/cperl/lib/File/Fetch.html">File::Fetch</a> 0.56</dt>
<dd>
<p>hpux should not use lftp. Switch test URL from www.cpan.org to httpbin.org</p>
</dd>
<dt id="Filter-1.58"><a>Filter</a> 1.58</dt>
<dd>
</dd>
<dt id="JSON::PP-2.97001_04"><a href="/cperl/lib/JSON/PP.html">JSON::PP</a> 2.97001_04</dt>
<dd>
</dd>
<dt id="Locale::Codes-3.55"><a>Locale::Codes</a> 3.55</dt>
<dd>
</dd>
<dt id="libnet-3.11">libnet 3.11</dt>
<dd>
</dd>
<dt id="Net::Ping-2.63"><a href="/cperl/lib/Net/Ping.html">Net::Ping</a> 2.63</dt>
<dd>
</dd>
<dt id="Pod::Man-4.11"><a href="/cperl/lib/Pod/Man.html">Pod::Man</a> 4.11</dt>
<dd>
</dd>
<dt id="Scalar::Util-1.49"><a href="/cperl/lib/Scalar/Util.html">Scalar::Util</a> 1.49</dt>
<dd>
</dd>
<dt id="SelfLoader-1.24"><a href="/cperl/lib/SelfLoader.html">SelfLoader</a> 1.24</dt>
<dd>
</dd>
<dt id="Storable-3.05_14"><a href="/cperl/lib/Storable.html">Storable</a> 3.05_14</dt>
<dd>
<p>Try to fix readonly stacksize.h with perlbrew. <a href="https://github.com/perl11/cperl/issues/335">[cperl #335]</a></p>
</dd>
<dt id="Test::Builder::Tester-1.29c"><a href="/cperl/lib/Test/Builder/Tester.html">Test::Builder::Tester</a> 1.29c</dt>
<dd>
<p>annotate as methods.</p>
</dd>
<dt id="Time::HiRes-1.9752"><a href="/cperl/lib/Time/HiRes.html">Time::HiRes</a> 1.9752</dt>
<dd>
</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_01"><a href="/cperl/lib/Unicode/Collate.html">Unicode::Collate</a> 1.25_01</dt>
<dd>
</dd>
<dt id="version-0.9918_02c"><a href="/cperl/lib/version.html">version</a> 0.9918_02c</dt>
<dd>
<p>Add updates from 0.9918: Add LAX_DECIMAL_VERSION, LAX_DOTTED_DECIMAL_VERSION, STRICT_DECIMAL_VERSION, STRICT_DOTTED_DECIMAL_VERSION regexes.</p>
<p>Add <i>t/11_taint.t</i></p>
</dd>
<dt id="VMS::DCLsym-1.09"><a>VMS::DCLsym</a> 1.09</dt>
<dd>
</dd>
</dl>
<h1 id="Selected-Bug-Fixes">Selected Bug Fixes</h1>
<ul>
<li><p>Fixed wrong <code>panic: distributed hash flood</code> when dealing with large <code>%^H</code> hints hashes, with >127 entries, such as <code>_charnames.pm</code> in <code>Regexp::Common</code>. Fixed the logic dealing with such a hints hash. <a href="https://github.com/perl11/cperl/issues/350">[cperl #350]</a>.</p>
</li>
<li><p>Fixed endless rpeep compiler loop with a constant loop and a nested loop, which e.g. broke <code>Net:HTTP</code>. <a href="https://github.com/perl11/cperl/issues/349">[cperl #349]</a>.</p>
</li>
<li><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>
</li>
<li><p>The code that vivifies a typeglob out of a code ref made some false assumptions that could lead to a crash in cases such as <code>$::{"A"} = sub {}; \&{"A"}</code>. This has now been fixed. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131085">[perl #131085]</a></p>
</li>
<li><p>Several built-in functions previously had bugs that could cause them to write to the internal stack without allocating room for the item being written. In rare situations, this could have led to a crash. These bugs have now been fixed, and if any similar bugs are introduced in future, they will be detected automatically in debugging builds. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131732">[perl #131732]</a> <code>[commit 23891d5581278b]</code>.</p>
</li>
<li><p><code>my_atof2</code> no longer reads beyond the terminating NUL, which previously occurred if the decimal point is immediately before the NUL. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131526">[perl #131526]</a></p>
</li>
<li><p>Occasional "Malformed UTF-8 character" crashes in <code>s//</code> on utf8 strings have been fixed. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131575">[perl #131575]</a></p>
</li>
<li><p><code>perldoc -f s</code> now finds <code>s///</code>. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131371">[perl #131371]</a></p>
</li>
<li><p>Some erroneous warnings after utf8 conversion have been fixed. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131190">[perl #131190]</a></p>
</li>
<li><p>The <code>jmpenv</code> frame to catch Perl exceptions is set up lazily, and this used to be a bit too lazy. The catcher is now set up earlier, preventing some possible crashes. <a href="https://rt.perl.org/Public/Bug/Display.html?id=105930">[perl #105930]</a></p>
</li>
</ul>
<h1 id="Platform-Support">Platform Support</h1>
<h2 id="Platform-Specific-Notes">Platform-Specific Notes</h2>
<dl>
<dt id="FreeBSD">FreeBSD</dt>
<dd>
<ul>
<li><p>Building with <b>g++</b> on FreeBSD-11.0 has been fixed. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131337">[perl #131337]</a></p>
</li>
</ul>
</dd>
<dt id="Windows">Windows</dt>
<dd>
<ul>
<li><p>Support for compiling perl on Windows using Microsoft Visual Studio 2017 (containing Visual C++ 14.1) has been added.</p>
</li>
<li><p>Building XS modules with GCC 6 in a 64-bit build of Perl failed due to incorrect mapping of <code>strtoll</code> and <code>strtoull</code>. This has now been fixed. <a href="https://rt.perl.org/Public/Bug/Display.html?id=131726">[perl #131726]</a> <a href="https://rt.cpan.org/Public/Bug/Display.html?id=121683">[cpan #121683]</a> <a href="https://rt.cpan.org/Public/Bug/Display.html?id=122353">[cpan #122353]</a></p>
</li>
</ul>
</dd>
</dl>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>cperl 5.26.2 represents approximately 5 months of development since cperl 5.26.1c and contains approximately 93,000 lines of changes across 550 files from 16 authors.</p>
<p>Excluding auto-generated files, documentation and release tools, there were approximately 13,000 lines of changes to 340 .pm, .t, .c and .h files.</p>
<p>The following people are known to have contributed the improvements that became cperl 5.26.2:</p>
<p>Reini Urban, Steve Hay, Karl Williamson, Tony Cook, David Mitchell, Yves Orton, Father Chrysostomos, James E Keenan, Dagfinn Ilmari Mannsåker, Lukas Mai, Andy Dougherty, John Peacock, Slaven Rezic, Zefram, Jacques Germishuys, Craig A. Berry.</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.26.1..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 <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>cperlbug</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 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 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>