diff options
author | das <das@FreeBSD.org> | 2012-04-30 01:08:18 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2012-04-30 01:08:18 +0000 |
commit | c518692b2d5df8a7142f20783c37cea469c0b20b (patch) | |
tree | 09ba731f19402af09350cecd89001b1f297cb59b /lib/libstand | |
parent | 5fb190b2b7edf0bf9cabd4a770e52a9d17b292ba (diff) | |
download | FreeBSD-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/libstand')
0 files changed, 0 insertions, 0 deletions