runtime: fix memory corruption and leak in recursive panic handling
Recursive panics leave dangling Panic structs in g->panic stack.
At best it leads to a Defer leak and incorrect output on a subsequent panic.
At worst it arbitrary corrupts heap.
Hello rsc@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 3 months ago
(2014-03-07 15:47:27 UTC)
#1
LGTM Thanks very much for finding this. Just some naming and comment comments. https://codereview.appspot.com/72480043/diff/60001/src/pkg/runtime/panic.c File ...
11 years, 3 months ago
(2014-03-07 16:34:48 UTC)
#2
*** Submitted as https://code.google.com/p/go/source/detail?r=2bf62ae2b687 *** runtime: fix memory corruption and leak in recursive panic handling ...
11 years, 3 months ago
(2014-03-07 16:50:34 UTC)
#4
*** Submitted as https://code.google.com/p/go/source/detail?r=2bf62ae2b687 ***
runtime: fix memory corruption and leak in recursive panic handling
Recursive panics leave dangling Panic structs in g->panic stack.
At best it leads to a Defer leak and incorrect output on a subsequent panic.
At worst it arbitrary corrupts heap.
LGTM=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/72480043
Issue 72480043: code review 72480043: runtime: fix memory corruption and leak in recursive pa...
(Closed)
Created 11 years, 3 months ago by dvyukov
Modified 11 years, 3 months ago
Reviewers:
Base URL:
Comments: 10