diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2009-04-24 10:11:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-15 21:44:43 -0700 |
commit | 905c02acbd89f427c87a6d0a50fed757f6b3001c (patch) | |
tree | a4844dac7cd7bbce34ab33295eaa402d996e9b48 /fs/nls/nls_cp852.c | |
parent | e27ecdd94d81e5bc3d1f68591701db5adb342f0d (diff) | |
download | op-kernel-dev-905c02acbd89f427c87a6d0a50fed757f6b3001c.zip op-kernel-dev-905c02acbd89f427c87a6d0a50fed757f6b3001c.tar.gz |
nls: utf8_wcstombs: fix buffer overflow
utf8_wcstombs forgot to include one-byte UTF-8 characters when
calculating the output buffer size, i.e., theoretically, it was possible
to overflow the output buffer with an input string that contains enough
ASCII characters.
In practice, this was no problem because the only user so far (VFAT)
always uses a big enough output buffer.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/nls/nls_cp852.c')
0 files changed, 0 insertions, 0 deletions