mirror of https://github.com/mgba-emu/mgba.git
Core: Fix destroying an mVL with an invalid channel count
This commit is contained in:
parent
ffeb5cfe27
commit
44f031d89b
1
CHANGES
1
CHANGES
|
@ -76,6 +76,7 @@ Other fixes:
|
|||
- 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)
|
||||
|
|
|
@ -613,6 +613,7 @@ bool _readHeader(struct mVideoLogContext* context) {
|
|||
|
||||
LOAD_32LE(context->nChannels, 0, &header.nChannels);
|
||||
if (context->nChannels > mVL_MAX_CHANNELS) {
|
||||
context->nChannels = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue