summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/tmpnam.3
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2012-04-30 01:08:18 +0000
committerdas <das@FreeBSD.org>2012-04-30 01:08:18 +0000
commitc518692b2d5df8a7142f20783c37cea469c0b20b (patch)
tree09ba731f19402af09350cecd89001b1f297cb59b /lib/libc/stdio/tmpnam.3
parent5fb190b2b7edf0bf9cabd4a770e52a9d17b292ba (diff)
downloadFreeBSD-src-c518692b2d5df8a7142f20783c37cea469c0b20b.zip
FreeBSD-src-c518692b2d5df8a7142f20783c37cea469c0b20b.tar.gz
Fix a bug in *wscanf's handling of non-wide %s, %c, and %[
conversions. Both the specification and the documentation say the width is interpreted as the max number of wide characters to read, but the implementation was interpreting it as the number of bytes to convert. (See also r105317.) This change has security implications for any applications that depend on the buggy behavior, but the impact in practice is probably nil. Any such application would already be buggy on other platforms that get the semantics right. Also, these conversions are rarely used; %ls, %lc, and %l[ are more appropriate.
Diffstat (limited to 'lib/libc/stdio/tmpnam.3')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud