]> sourceware.org Git - glibc.git/commit
stdio: fix vfscanf with matches longer than INT_MAX (bug 27650)
authorAlyssa Ross <hi@alyssa.is>
Mon, 3 May 2021 08:34:11 +0000 (10:34 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 3 May 2021 08:34:11 +0000 (10:34 +0200)
commitb03e4d7bd25b1ac485f858f0a857ba6085e8c9b0
treeb525ecb1617634a5bdb0134238268012a8a8ca52
parentc2fd60a5861efef48252f5cc7efc70e1d8a0da9a
stdio: fix vfscanf with matches longer than INT_MAX (bug 27650)

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.
stdio-common/vfscanf-internal.c
This page took 0.038843 seconds and 5 git commands to generate.