[PATCH v3] vfprintf-internal: Replace alloca with malloc.
Paul Eggert
eggert@cs.ucla.edu
Wed May 17 18:08:39 GMT 2023
On 2023-05-15 11:50, Joe Simmons-Talbott via Libc-alpha wrote:
> + args_value[cnt].pa_user = malloc (args_size[cnt]);
> + if (args_value[cnt].pa_user == NULL)
> + break;
Shouldn't an error be returned if a printf function runs out of memory
internally?
Also, that function already uses a scratch buffer; why not grow the
scratch buffer instead of calling malloc separately?
More information about the Libc-alpha
mailing list