We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8731e7e commit 81fd8b3Copy full SHA for 81fd8b3
1 file changed
src/utils.c
@@ -106,8 +106,6 @@ void * avifArrayPush(void * arrayStruct)
106
uint8_t * oldPtr = arr->ptr;
107
size_t oldByteCount = (size_t)arr->elementSize * arr->capacity;
108
109
- // Check for overflow before doubling the allocation size
110
- // If oldByteCount > SIZE_MAX/2, then oldByteCount * 2 would overflow
111
if (oldByteCount > SIZE_MAX / 2) {
112
return NULL;
113
}
0 commit comments