[PATCH] stdio: fix vfscanf with matches longer than INT_MAX (bug 27650)
Florian Weimer
fweimer@redhat.com
Mon May 3 08:57:12 GMT 2021
* Alyssa Ross:
> Patterns like %*[ can safely be used to match a great many characters,
> and it's quite realisitic to use them for more than INT_MAX characters
> from an IO stream.
>
> With the previous approach, after INT_MAX characters (v)fscanf would
> return successfully, indicating an end to the match, even though there
> wasn't one.
I've pushed to this commit, thanks.
We can integrate the test once your copyright assignment is on file.
Thanks,
Florian
More information about the Libc-alpha
mailing list