Skip to content

Commit f33868e

Browse files
committed
scope.c - sanity check a var before we use it
1 parent 6e80545 commit f33868e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scope.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ Perl_save_clearsv(pTHX_ SV **svp)
725725
PERL_ARGS_ASSERT_SAVE_CLEARSV;
726726

727727
ASSERT_CURPAD_ACTIVE("save_clearsv");
728+
assert(*svp);
728729
SvPADSTALE_off(*svp); /* mark lexical as active */
729730
if (UNLIKELY((offset_shifted >> SAVE_TIGHT_SHIFT) != offset)) {
730731
Perl_croak(aTHX_ "panic: pad offset %" UVuf " out of range (%p-%p)",

0 commit comments

Comments
 (0)