mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
AGI: Fix buffer overrun. CID 1004033
This commit is contained in:
parent
aac0924b0e
commit
dcad1cfb55
@ -178,7 +178,7 @@ int AgiLoader_v2::loadResource(int t, int n) {
|
||||
uint8 *data = NULL;
|
||||
|
||||
debugC(3, kDebugLevelResources, "(t = %d, n = %d)", t, n);
|
||||
if (n > MAX_DIRS)
|
||||
if (n >= MAX_DIRS)
|
||||
return errBadResource;
|
||||
|
||||
switch (t) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user