Bus error
Same in 5.11.4.
This is related to bug 71254. It turns out that globs *can* stringify
emptily (see bug 65582). This patch makes DD more resilient.
}
else if (realtype == SVt_PVGV) {/* GLOBs can end up with scribbly names */
c = SvPV(val, i);
- ++c; --i; /* just get the name */
+ if(i) ++c, --i; /* just get the name */
if (i >= 6 && strncmp(c, "main::", 6) == 0) {
c += 4;
i -= 4;
}
use strict;
-use Test::More tests => 5;
+use Test::More tests => 6;
use Data::Dumper;
{
doh('fixed');
ok(1, "[perl #56766]"); # Still no core dump? We are fine.
+# [perl #72332] Segfault on empty-string glob
+Data::Dumper->Dump([*{*STDERR{IO}}]);
+ok("ok", #ok
+ "empty-string glob [perl #72332]");
+
# EOF