mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 23:01:42 +00:00
fix possible oob access
svn-id: r32799
This commit is contained in:
parent
b6adcca897
commit
358d2ec44a
@ -106,7 +106,7 @@ ResourceEntry *Resource::resourceEntry(const char *filename) const {
|
||||
re = &_resourceTable[cur];
|
||||
break;
|
||||
}
|
||||
} while (cur++ < _resourceEntries);
|
||||
} while (++cur < _resourceEntries);
|
||||
#endif
|
||||
return re;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user