[PATCH v2 06/14] stdio-common: Reject insufficient character data in scanf [BZ #12701]

Maciej W. Rozycki macro@redhat.com
Sun Aug 24 20:25:22 GMT 2025


On Tue, 19 Aug 2025, Maciej W. Rozycki wrote:

> > Add a TEST_VERIFY_EXIT (f != NULL);
> 
>  I chose to instead call:
> 
>   if (f == NULL)
>     FAIL_EXIT1 ("fmemopen: %m");
> 
> just as with 01/14, as strictly speaking the invocation of `fmemopen' is 
> not a part of the test proper, and this will produce useful output as to 
> what went wrong.  Ultimately I think it should land in support/xfmemopen.c 
> analogously to `xfclose', etc., but that can be a separate change.

 Posted now, 
<https://patchwork.sourceware.org/project/glibc/list/?series=51134>.

  Maciej



More information about the Libc-alpha mailing list