don't assert() that realloc() worked inside a conditional.
found by GCC 12.
This commit is contained in:
parent
f386908b27
commit
c933870198
|
@ -122,7 +122,7 @@ test_fuzz(const struct files *filesets)
|
|||
tmp = slurpfile(&size, "%s",
|
||||
filesets[n].names[i]);
|
||||
newraw = realloc(rawimage, oldsize + size);
|
||||
if (!assert(newraw != NULL))
|
||||
if (newraw == NULL)
|
||||
{
|
||||
free(rawimage);
|
||||
rawimage = NULL;
|
||||
|
|
Loading…
Reference in New Issue