by CodesInChaos · 4mo ago · 0 comments
if (a->cursor + size > a->limit) return NULL; // out of memory
if (size > a->limit - a->cursor) return NULL; // out of memory
if (size > a->limit - a->cursor) return NULL;