This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pp_return: avoid potential CX stack realloc prob
[perl5.git]
/
pp_ctl.c
diff --git
a/pp_ctl.c
b/pp_ctl.c
index
1a2b0f7
..
00b9e02
100644
(file)
--- a/
pp_ctl.c
+++ b/
pp_ctl.c
@@
-2487,6
+2487,7
@@
PP(pp_return)
cx->blk_gimme, SVs_TEMP|SVs_PADTMP, TRUE);
SPAGAIN;
dounwind(cxix);
+ cx = &cxstack[cxix]; /* CX stack may have been realloced */
}
else {
/* Like in the branch above, we need to handle any extra junk on