Fix buffer overrun problem reported by TAKAI Kousuke, along
authorJim Meyering <jim@meyering.net>
Thu, 27 Mar 2003 14:59:26 +0000 (14:59 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 27 Mar 2003 14:59:26 +0000 (14:59 +0000)
commitcb392d10229f35798fbc1dd3de7e7a5cf690d47d
treeeaaf8b3f9ee4f9750c709eeb1fa568552d656e4b
parenta89b7d3e831e28521d996e39cf8abe0ece8e22d8
Fix buffer overrun problem reported by TAKAI Kousuke, along
with some other POSIX incompatibilities.

(print_esc): Do not treat \x specially if
POSIXLY_CORRECT.  Avoid buffer overrun if the format ends
in backslash.  Treat incomplete escape sequences as strings
of characters, as POSIX requires.
(print_formatted): Allow multiple flags.  Avoid buffer overrun
if the format is incomplete.
src/printf.c