Test: Fix crash when loading invalid file
Vicki Pfau vi@endrift.com
Tue, 18 Apr 2017 03:36:48 -0700
2 files changed,
4 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -45,6 +45,7 @@ - GBA BIOS: Fix ArcTan2 sign in HLE BIOS (fixes mgba.io/i/689)
- GBA Video: Don't update background scanline params in mode 0 (fixes mgba.io/i/377) - Qt: Ensure CLI backend is attached when submitting commands (fixes mgba.io/i/662) - Core: Fix crash with rewind if savestates shrink + - Test: Fix crash when loading invalid file Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M
src/platform/test/fuzz-main.c
→
src/platform/test/fuzz-main.c
@@ -68,6 +68,9 @@ version(argv[0]);
return 0; } struct mCore* core = mCoreFind(args.fname); + if (!core) { + return 1; + } core->init(core); mCoreInitConfig(core, "fuzz"); applyArguments(&args, NULL, &core->config);