mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
ICB: Fix infinite loop. CID 1433458
This commit is contained in:
parent
c7f3554b40
commit
37ff2f2a3f
@ -125,6 +125,8 @@ OT_tag *ClearOTag(OT_tag *ot, uint32 size) {
|
||||
while (i < (size - 1)) {
|
||||
ot[i].addr = (void *)&ot[i + 1];
|
||||
ot[i].len = UNLINKED_LEN;
|
||||
|
||||
i++;
|
||||
}
|
||||
ot[size - 1].addr = UNLINKED_ADDR;
|
||||
ot[size - 1].len = UNLINKED_LEN;
|
||||
|
Loading…
Reference in New Issue
Block a user