mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
Guard against too many entries in resource.inf, since there has been a TODO
comment about that (removed in the previous commit) since roughly forever. svn-id: r21536
This commit is contained in:
parent
2197597f9a
commit
d6f348638d
@ -89,7 +89,8 @@ ResourceManager::ResourceManager(Sword2Engine *vm) {
|
||||
while (file.readLine(_resFiles[_totalClusters].fileName, sizeof(_resFiles[_totalClusters].fileName))) {
|
||||
_resFiles[_totalClusters].numEntries = -1;
|
||||
_resFiles[_totalClusters].entryTab = NULL;
|
||||
_totalClusters++;
|
||||
if (++_totalClusters >= MAX_res_files)
|
||||
error("Too many entries in resource.inf");
|
||||
}
|
||||
|
||||
file.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user