Fix missing NUL terminator in stdio-common/scanf13 test
commitb866018f54ad0670ee9b930a14ae6e8960b9f4bf
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 11 Oct 2022 13:57:16 +0000 (11 14:57 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 28 Oct 2022 10:16:51 +0000 (28 11:16 +0100)
tree7ea12d46c1f7fcf6fb48b31a697b904accfeaffc
parent6a3794ea917558776ba1a66a925f2d5e1dbf0724
Fix missing NUL terminator in stdio-common/scanf13 test

sscanf is only defined on nul terminated string input, but '\0' was
missing in this test which caused _IO_str_init_static_internal to
read OOB on the stack when computing the bounds of the string.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
stdio-common/scanf13.c