-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperl5224cdelta.html
391 lines (241 loc) · 16 KB
/
perl5224cdelta.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
<?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>perl5224cdelta - what is new for cperl v5.22.4</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="#DynaLoader-format-string-hardening">DynaLoader format string hardening</a></li>
<li><a href="#No-Unicode-confusables-UFFA0-U3164">No Unicode confusables +UFFA0, +U3164</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="#Configuration-and-Compilation">Configuration and Compilation</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>perl5224cdelta - what is new for cperl v5.22.4</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes perl-only differences between the cperl 5.22.3 release and the cperl 5.22.4 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="DynaLoader-format-string-hardening">DynaLoader format string hardening</h2>
<p>Replace all <code>%</code> characters in user-controlled library filenames, passed via the system dl_error call verbatim to <code>printf</code>, without any arguments on the stack, which could lead to execution of arbitrary stack code. No CVE. This affects all systems with dynamic loading where the attacker can cause a dynamic loading error.</p>
<p>CVSSv2 Severity: 7.2 (AV:L/AC:L/Au:N/C:C/I:C/A:C/E:U/RL:OF/RC:C/CDP:MH/TD:H/CR:H/IR:H/AR:ND)</p>
<h2 id="No-Unicode-confusables-UFFA0-U3164">No Unicode confusables +UFFA0, +U3164</h2>
<p>In deviation from Unicode 1.1 we treat the two HANGUL FILLER characters +UFFA0 and +U3164 not as valid ID_Start and ID_Continue characters for perl identifiers. Variable and package names may not begin with them and may not contain them.</p>
<p>They are usually rendered as whitespace, and would lead to classic TR39 confusables. See <a href="https://github.com/jagracey/Awesome-Unicode#user-content-variable-identifiers-can-effectively-include-whitespace">https://github.com/jagracey/Awesome-Unicode#user-content-variable-identifiers-can-effectively-include-whitespace</a> and <a href="http://www.unicode.org/reports/tr39/">http://www.unicode.org/reports/tr39/</a>.</p>
<p>In a more Korean friendly environment, we could check for a ID_Start Hangul filler if the next character is a valid Hangul ID_Continue character, and allow it then. Ditto for a ID_Continue Hangul filler if the previous and next character is a valid Hangul ID_Start or ID_Continue character, and allow it then. But those fillers should be treated as whitespace, and should be ignored.</p>
<p><a href="http://www.unicode.org/L2/L2006/06310-hangul-decompose9.pdf">http://www.unicode.org/L2/L2006/06310-hangul-decompose9.pdf</a> explains:</p>
<p><i>The two other hangul fillers HANGUL CHOSEONG FILLER (Lf), i.e. lead filler, and HANGUL JUNGSEONG FILLER (Vf) are used as placeholders for missing letters, where there should be at least one letter.</i></p>
<p><i>... that leaves the (HALFWIDTH) HANGUL FILLERs useless. Indeed, they should not be rendered at all, despite that they have been given the property Lo. Note that these FILLERs are also given the property of Default_Ignorable_Codepoint.</i></p>
<p><i>Note that the standard normal forms NFKD and NFKC ... return (in all views) incorrect results for strings containing these characters.</i></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::C-1.54_08">B::C 1.54_08</dt>
<dd>
<p>Many Windows and cygwin fixes, for the old MSVC compiler, and PERL_CORE test integration. Use many new core exports needed for windows.</p>
<p>Update perlcc to 2.21, handle multiple -I and -L arguments.</p>
<p>Handle cperl OP_SIGNATURE.</p>
<p>Fix refcount of cop hints hashes with 5.22-nt <a href="https://github.com/perl11/cperl/issues/220">[cperl #220]</a></p>
<p>Better UVX L and U suffices.</p>
<p>Handle shared IV and UV xpv structs, fixed 5.24 specific assertions, with shared xpviv/xpvuv. fixed wrong 32 bit ptr offset. re-enabled all 32bit tests.</p>
<p>Handle changed subdirs-test target with newer EUMM.</p>
</dd>
<dt id="B::Deparse-1.37_01c">B::Deparse 1.37_01c</dt>
<dd>
<p>Add more cperl-specific ops: <code>aelem*_u</code>, <code>u_{add,subtract,multiply}</code>, <code>{i,n,s}_aelem{,_u}</code></p>
</dd>
<dt id="Config::Perl::V-0.26_01">Config::Perl::V 0.26_01</dt>
<dd>
<p>cperl patches. Add tests for 5.22 and 5.24. Support some multi-line keys: ccflags ldflags lddlflags Changed tests to use done_testing().</p>
</dd>
<dt id="Cpanel::JSON::XS-3.0217">Cpanel::JSON::XS 3.0217</dt>
<dd>
<p>Improve error message with class based method calls, when forgetting ->new. <a href="https://github.com/rurban/Cpanel-JSON-XS/issues/66">[#66]</a></p>
<p>Fix a off-by-one IV_MIN -> NV overflow in decode_json. <a href="https://github.com/rurban/Cpanel-JSON-XS/issues/67">[#67]</a> (xdg)</p>
<p>Avoid encode_sv SEGV with -Dusequadmath. <a href="https://github.com/rurban/Cpanel-JSON-XS/issues/62">[#62]</a> Fix quadmath NV stringification.</p>
<p>Preserve numbers as numbers, enforce an added <code>.0</code> (xdg). Also note that 42+"bar" will result >=5.10 in numbers not integers, => 42.0</p>
</dd>
<dt id="Devel::PPPort-3.33_02">Devel::PPPort 3.33_02</dt>
<dd>
<p>Support the latest versions.</p>
<p>cperl specific: Minor -Dfortify_inc fixes, kept our Hv macros, fix __attribute__((warn_unused_result)) on windows.</p>
</dd>
<dt id="Socket-2.021_02">Socket 2.021_02</dt>
<dd>
<p>Silence some CC warnings</p>
<p>Fix my to our $XS_VERSION</p>
<p>Check for max length before derefing by length (jhi) RT #111707</p>
</dd>
<dt id="DynaLoader-2.04c">DynaLoader 2.04c</dt>
<dd>
<p>See <a href="#DynaLoader-format-string-hardening">"DynaLoader format string hardening"</a> above.</p>
<p>Silence some CC warnings, add changelog.</p>
</dd>
<dt id="Storable">Storable</dt>
<dd>
<p>Silence some CC warnings, esp. on 32bit.</p>
</dd>
<dt id="Config-6.21">Config 6.21</dt>
<dd>
<p>Improvements from cperl-5.24:</p>
<pre><code> -fix for readonly Makefile.PL (in core src tarballs)
-fix wrong SKIP headers
-skip in core make regen tests (--tap)
-more 5.24 and cperl keys
-silence unused classname compiler warning
-link to Mock::Config in the docs to temp. write to %Config
in tests.
-Dfortify_inc fixes</code></pre>
<p>-regen the XSConfig.t/Config_xs.PL key lists</p>
<p>-remove now generated/range operator-ed config_arg keys from XSConfig.t they are redundant</p>
<p>-add common keys d_memmem d_uselocale d_freelocale d_newlocale to CPAN</p>
<p>-clean build product Config_xs_tmp.in</p>
<p>-PERL_UNUSED_ARG fix for 5.8.7</p>
<p>-Silence some CC warnings.</p>
</dd>
<dt id="libnet-3.08">libnet 3.08</dt>
<dd>
<p>With our Net::Domain patch for darwin. Improved utf8 and ipv6 support.</p>
</dd>
<dt id="Pod::Checker-1.73">Pod::Checker 1.73</dt>
<dd>
<p>Now based on Pod::Simple, not on Pod::Parser anymore. dos2unix</p>
</dd>
<dt id="Devel-NYTProf">Devel-NYTProf</dt>
<dd>
<p>Silence some CC warnings.</p>
</dd>
<dt id="Digest-MD5">Digest-MD5</dt>
<dd>
<p>Improve <code>d_u32align</code> diagnostic message</p>
</dd>
</dl>
<h1 id="Utility-Changes">Utility Changes</h1>
<h2 id="installperl"><i>installperl</i></h2>
<ul>
<li><p>Fixed regression from 5.22.1c for windows.</p>
</li>
</ul>
<h1 id="Configuration-and-Compilation">Configuration and Compilation</h1>
<ul>
<li><p>Added a <code>make archclean</code> target for POSIX platforms, which does not require a new <code>Configure</code> call.</p>
</li>
<li><p>Fixed a couple of quadmath detection issues.</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>SvREADONLY_off(sv) 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="handle-method-calls-on-protected-stashes">handle method calls on protected stashes</dt>
<dd>
<p><a href="https://github.com/perl11/cperl/issues/171">[cperl #171]</a></p>
<p>Known bug upstream, not fixed there. This problem appears more often with cperl with its protected coretypes than upstream.</p>
</dd>
<dt id="Do-not-crash-when-inserting-a-non-stash-into-a-stash">Do not crash when inserting a non-stash into a stash</dt>
<dd>
<p>Also do not treat <code>%:</code> as a stash.</p>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128238">RT#128238</a></p>
<p>Fedora Patches 37, 36.</p>
</dd>
<dt id="fedora:-Fix-precedence-in-hv_ename_delete">fedora: Fix precedence in hv_ename_delete</dt>
<dd>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128086">RT#128086</a></p>
<p>Fedora Patch35</p>
</dd>
<dt id="fedora:-Do-not-use-unitialized-memory-in-h-const-warnings">fedora: Do not use unitialized memory in $h{\const} warnings</dt>
<dd>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128189">RT#128189</a></p>
<p>Fedora Patch34</p>
</dd>
<dt id="fedora:-Do-not-mangle-errno-from-failed-socket-calls">fedora: Do not mangle errno from failed socket calls</dt>
<dd>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128316">RT#128316</a></p>
<p>Fedora Patch32</p>
</dd>
<dt id="fedora:-Backport-memory-leak-when-compiling-a-regular-expression-with-a-POSIX-class">fedora: Backport memory leak when compiling a regular expression with a POSIX class</dt>
<dd>
<p>E.g. when <code>use re 'strict';</code> is used.</p>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128313">RT#128313</a></p>
<p>Fedora Patch31</p>
</dd>
<dt id="suse:-fix-regexp-backref-overflows">suse: fix regexp backref overflows</dt>
<dd>
<p>With many backref groups (>I32)</p>
</dd>
<dt id="suse:-perl-saverecontext.diff-RT-76538">suse: perl-saverecontext.diff RT#76538</dt>
<dd>
<p>Handle get magic with globs in the regex compiler. Correctly restore context, esp. when loading unicode swashes. Reported at 5.12, patched for suse 5.14, still ignored with 5.24.</p>
</dd>
<dt id="locale-race-condition-when-switching-to-C-for-error-messages">locale race condition when switching to C for error messages</dt>
<dd>
<p>A race condition which occurred when computing <code>"$!"</code> with threads activated has been fixed. This showed up only on Darwin platforms. A related problem on Cygwin platforms involving UTF-8 strings has also been fixed. See <a href="https://rt.perl.org/Public/Bug/Display.html?id=127708">RT #127708</a></p>
</dd>
<dt id="Fix-crash-with-a-.-etc">Fix crash with @a &.= etc.</dt>
<dd>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128204">RT #128204</a></p>
</dd>
<dt id="Fix-PERLIO-stdio-dup-on-empty-filehandle">Fix PERLIO=stdio dup on empty filehandle</dt>
<dd>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=63244">RT #63244</a> or <a href="http://bugs.debian.org/164615">http://bugs.debian.org/164615</a>, crashes from 5.8.8 to blead.</p>
<p><code>env PERLIO=stdio perl -e'open(F, "<&STDOUT")' 1</dev/null</code></p>
</dd>
<dt id="Fix-crash-from-empty-curcop-in-gp_free-ckWARN_d">Fix crash from empty curcop in gp_free/ckWARN_d</dt>
<dd>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128597">RT #128597</a>.</p>
<p><code>open my $fh, ">", \$buf; my $sub = eval q|sub {die}|; $sub->()'</code> crashed in 5.22 to 5.24.1.</p>
</dd>
<dt id="Fix-crash-when-vivifying-stub-in-deleted-pkg">Fix crash when vivifying stub in deleted pkg</dt>
<dd>
<p>5.18 which added newSTUB, did not take into account that a GV may have a null GvSTASH pointer, if its stash has been freed, so this crashed. See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128532">RT #128532</a>.</p>
<p><code>delete $My::{"Foo::"}; \&My::Foo::foo</code> crashed from 5.18 to 5.24.1.</p>
</dd>
</dl>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>cperl 5.22.4 represents approximately 2 months of development since cperl 5.22.3 and contains approximately 900,000 lines of changes across 570 files from 13 authors.</p>
<p>Excluding auto-generated files, documentation and release tools, there were approximately 7,900 lines of changes to 120 .pm, .t, .c and .h files.</p>
<p>The following people are known to have contributed the improvements that became cperl 5.22.4:</p>
<p>Reini Urban, Father Chrysostomos, Karl Williamson, David Mitchell, Daniel Dragan, Tony Cook, Lukas Mai, Niko Tyni, H.Merijn Brand, Hugo van der Sanden, Dagfinn Ilmari Mannsåker, Aaron Crane, Dan Collins.</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 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>