Debugger: Fix use-after-free in breakpoint clearing code (again)
Jeffrey Pfau jeffrey@endrift.com
Sat, 15 Aug 2015 22:12:26 -0700
2 files changed,
3 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -73,6 +73,7 @@ - Qt: Fix crashes on Windows by using using QMetaObject to do cross-thread calls
- GBA Video: Fix timing on first scanline - GBA: Ensure cycles never go negative - Util: Fix formatting of floats + - Debugger: Fix use-after-free in breakpoint clearing code Misc: - Qt: Handle saving input settings better - Debugger: Free watchpoints in addition to breakpoints
M
src/debugger/debugger.c
→
src/debugger/debugger.c
@@ -155,6 +155,7 @@ next = &breakpoint->next;
if (breakpoint->address == address) { *previous = *next; free(breakpoint); + continue; } previous = next; }@@ -179,6 +180,7 @@ next = &watchpoint->next;
if (watchpoint->address == address) { *previous = *next; free(watchpoint); + continue; } previous = next; }