Skip to content

Commit 81fd8b3

Browse files
committed
Remove overflow check comment per review
1 parent 8731e7e commit 81fd8b3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/utils.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ void * avifArrayPush(void * arrayStruct)
106106
uint8_t * oldPtr = arr->ptr;
107107
size_t oldByteCount = (size_t)arr->elementSize * arr->capacity;
108108

109-
// Check for overflow before doubling the allocation size
110-
// If oldByteCount > SIZE_MAX/2, then oldByteCount * 2 would overflow
111109
if (oldByteCount > SIZE_MAX / 2) {
112110
return NULL;
113111
}

0 commit comments

Comments
 (0)