diff options
author | dgp <dgp@users.sourceforge.net> | 2016-07-11 21:56:32 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-07-11 21:56:32 (GMT) |
commit | 0ceae7a8858e4fc063aaed9c90e843c52b6c4769 (patch) | |
tree | c705d43e1582e5709cbf4a4c93c8790a2a58ea15 /generic | |
parent | e19d125606278445af20df5b1d452945450776da (diff) | |
download | tcl-0ceae7a8858e4fc063aaed9c90e843c52b6c4769.zip tcl-0ceae7a8858e4fc063aaed9c90e843c52b6c4769.tar.gz tcl-0ceae7a8858e4fc063aaed9c90e843c52b6c4769.tar.bz2 |
[cea0344a1] Restore a clearing of the ensemble rewrite in one execution path
so attempts to use the data after free are not made.
Test namespace-50.9 demonstrates the need for this.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclExecute.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index c0cbd9e..e539161 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -2078,6 +2078,13 @@ TclNRExecuteByteCode( #endif /* + * Test namespace-50.9 demonstrates the need for this call. + * Use a --enable-symbols=mem bug to see. + */ + + TclResetRewriteEnsemble(interp, 1); + + /* * Push the callback for bytecode execution */ |