AmendHub

Download (as of this amendment):

jcs

/

subtext

/

amendments

/

603

bile: Return early from xmalloczero failure in bile_resize


jcs made amendment 603 10 months ago
--- bile.c Mon Feb 19 10:33:28 2024 +++ bile.c Sat Dec 6 15:03:15 2025 @@ -666,6 +666,7 @@ bile_resize(struct bile *bile, const OSType type, data = xmalloczero(MAX(o->size, new_size)); if (data == NULL) { _bile_error = bile->last_error = BILE_ERR_NO_MEMORY; + return 0; } ret = bile_read_object(bile, o, data, o->size);