all repos — mgba @ 44f031d89b9e33338916aeefddb94c3b494a47af

mGBA Game Boy Advance Emulator

Core: Fix destroying an mVL with an invalid channel count
Vicki Pfau vi@endrift.com
Tue, 23 Mar 2021 19:35:01 -0700
commit

44f031d89b9e33338916aeefddb94c3b494a47af

parent

ffeb5cfe2779b5f0c633e13e15adef651658d160

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -76,6 +76,7 @@ - CMake: Link with correct OpenGL library (fixes mgba.io/i/1872)

- Core: Ensure ELF regions can be written before trying - Core: Fix threading improperly setting paused state while interrupted - Core: Fix loading ELF files that have unexpected empty program headers + - Core: Fix destroying an mVL with an invalid channel count - Debugger: Don't skip undefined instructions when debugger attached - Debugger: Close trace log when done tracing - Debugger: Fix change watchpoints (fixes mgba.io/i/1947)
M src/feature/video-logger.csrc/feature/video-logger.c

@@ -613,6 +613,7 @@ }

LOAD_32LE(context->nChannels, 0, &header.nChannels); if (context->nChannels > mVL_MAX_CHANNELS) { + context->nChannels = 0; return false; }