mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
scope.c - sanity check a var before we use it
This commit is contained in:
parent
ed06cd5b1c
commit
3fe8433633
1
scope.c
1
scope.c
@ -725,6 +725,7 @@ Perl_save_clearsv(pTHX_ SV **svp)
|
||||
PERL_ARGS_ASSERT_SAVE_CLEARSV;
|
||||
|
||||
ASSERT_CURPAD_ACTIVE("save_clearsv");
|
||||
assert(*svp);
|
||||
SvPADSTALE_off(*svp); /* mark lexical as active */
|
||||
if (UNLIKELY((offset_shifted >> SAVE_TIGHT_SHIFT) != offset)) {
|
||||
Perl_croak(aTHX_ "panic: pad offset %" UVuf " out of range (%p-%p)",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user