This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
assert nested CV existence when freeing CV
authorZefram <zefram@fysh.org>
Sat, 30 Dec 2017 12:36:54 +0000 (12:36 +0000)
committerZefram <zefram@fysh.org>
Sat, 30 Dec 2017 12:36:54 +0000 (12:36 +0000)
commitdce3f5c3fd788f1c2e451e3760f05a347c949eff
tree34853724ee56bad73e6e3a48115ec33530b1f4d2
parente2bcc7d7ec67c661405135f9b00232631a97f2fb
assert nested CV existence when freeing CV

[perl #131631] has a convoluted test case that messes up parser error
recovery and causes a segv via null pointer dereference.  Turn the segv
into an assertion failure, by asserting non-nullness of the pointer.
This doesn't fix the actual problem with error recovery.
pad.c