Fix #72850 - reading $! shouldn't SEGV if Strerror(errno) returns NULL.
authorNicholas Clark <nick@ccl4.org>
Tue, 16 Feb 2010 16:16:33 +0000 (16:16 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 16 Feb 2010 16:20:12 +0000 (16:20 +0000)
commitbe1cf43c8dab9dd236839206d53611f7e7d2d856
treebfa364bbad6e8e3e86029e0df585a0e00af6174b
parentcc0193b268b34831b23946ad1ecf255c0404d836
Fix #72850 - reading $! shouldn't SEGV if Strerror(errno) returns NULL.

This can happen on some OSes for out of range errno values. The bug was
introduced with 0097b436152452e4, which in turn fixed #61976.

Test case by Steve Peters.
mg.c
t/op/magic.t