Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
WIP fix sigref stack corruption
Browse files Browse the repository at this point in the history
setting undef to the last stack element ($id here).
see cperl #395. This is not the proper fix though.
  • Loading branch information
rurban committed Jun 27, 2019
1 parent b1a34c8 commit 9a2d7ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pp_hot.c
Original file line number Diff line number Diff line change
Expand Up @@ -5845,8 +5845,12 @@ PP(pp_signature)
argc--;
DEBUG_Xv(Perl_deb(aTHX_ " sigref padp %p = argp %p\n", *padp, *argp));
/* copy back temp pad to old sv at leavesub */
#if 0 /* [cperl #395] */
save_pushptrptr(argp, padp, SAVEt_SPTR);
#endif
#if 1
SvPADSTALE_on(*padp); /* mark our pad as inactive */
#endif
*padp++ = *argp++; /* and overwrite new pad with old sv */
actions >>= SIGNATURE_SHIFT;
continue;
Expand Down

0 comments on commit 9a2d7ae

Please sign in to comment.