diff options
author | Tony Cook <tony@develop-help.com> | 2016-10-17 14:32:41 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2016-10-17 14:32:41 +1100 |
commit | 4eadd82f8c152034818f42956737102f674f9118 (patch) | |
tree | c52acfc746cd735369880a77d18ad39d2b6a08b8 /op.c | |
parent | 87af8d55d30dca849a4094c502ad2d067745049f (diff) | |
download | perl-4eadd82f8c152034818f42956737102f674f9118.tar.gz |
(perl #128996) prevent PL_op pointing to freed ops
When yylex() attempts to report a UTF-8 encoding error, it
indirectly accesses PL_op, this would cause an access to freed
memory if the CV containing that op (and the op itself) had been
freed.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -853,10 +853,8 @@ Perl_op_free(pTHX_ OP *o) op_clear(o); FreeOp(o); -#ifdef DEBUG_LEAKING_SCALARS if (PL_op == o) PL_op = NULL; -#endif } while ( (o = POP_DEFERRED_OP()) ); Safefree(defer_stack); |