reallocarray introduction available on glibc 2.26. allocates an array of m*n elements but checking for overflow.
This commit is contained in:
@@ -7,6 +7,8 @@ calloc (overflowing): pointer: (nil), error value: 12 = Out of memory
|
||||
realloc (size 0): (OK)
|
||||
realloc: pointer: (not NULL), error value: 0 = Success
|
||||
realloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
|
||||
reallocarray: pointer: (not NULL), error value: 0 = Success
|
||||
reallocarray (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
|
||||
memalign (size 0): (OK)
|
||||
memalign: pointer: (alignment OK), error value: 0 = Success
|
||||
memalign (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
|
||||
|
||||
Reference in New Issue
Block a user