musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/vfwscanf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年08月31日 22:47:44 -0400
committerRich Felker <dalias@aerifal.cx>2013年08月31日 22:47:44 -0400
commitcbb8a6979038f96d3f67c659363cebf0615c42ba (patch)
tree54a4e0c3d862e3d52a2c2db30ca07be63afce7e4 /src/stdio/vfwscanf.c
parent35e8621a28db1c34685adbbf1c2229270cbf7236 (diff)
downloadmusl-cbb8a6979038f96d3f67c659363cebf0615c42ba.tar.gz
avoid crash in scanf when invalid %m format is encountered
invalid format strings invoke undefined behavior, so this is not a conformance issue, but it's nicer for scanf to report the error safely instead of calling free on a potentially-uninitialized pointer or a pointer to memory belonging to the caller.
Diffstat (limited to 'src/stdio/vfwscanf.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月09日 16:12:49 +0000

AltStyle によって変換されたページ (->オリジナル) /