ICB: Fix infinite loop. CID 1433458

This commit is contained in:
Eugene Sandulenko 2024-10-23 18:43:27 +02:00
parent c7f3554b40
commit 37ff2f2a3f
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -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;