On Wed, May 17, 2023 at 2:10 PM Paul Eggert wrote: > 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? > Yes. > > Also, that function already uses a scratch buffer; why not grow the > scratch buffer instead of calling malloc separately? > I was going to make the suggestion.. scratch_buffer all things possible since afair it was built specifically to replace most if not all the __use_alloca thingies.