[PATCH] Add test for bug 29530

Andreas Schwab schwab@suse.de
Mon Aug 29 14:18:56 GMT 2022


On Aug 29 2022, Florian Weimer wrote:

> * Andreas Schwab via Libc-alpha:
>
>> +static int
>> +do_test (void)
>> +{
>> +  char buf[1001];
>> +
>> +  xsetlocale (LC_NUMERIC, "de_DE.UTF-8");
>> +
>> +  /* This used to crash in group_number.  */
>> +  sprintf (buf, "%'1000d", 1000);
>> +
>> +  return 0;
>> +}
>
> Should the test check the expected output?

It could, but that's not the point of it.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list