diff options
author | Marc-André Lureau | 2016-02-17 17:47:54 +0100 |
---|---|---|
committer | Michael Roth | 2016-02-25 16:48:51 +0100 |
commit | 25d943b95703ae45567395db4156b25052ee54c4 (patch) | |
tree | 9377545cb6158a9393ef7d5583039a893271b2ae /linux-headers/linux | |
parent | qga: use wide-chars constants for wchar_t comparisons (diff) | |
download | qemu-25d943b95703ae45567395db4156b25052ee54c4.tar.gz qemu-25d943b95703ae45567395db4156b25052ee54c4.tar.xz qemu-25d943b95703ae45567395db4156b25052ee54c4.zip |
qga: fix off-by-one length check
Laszlo Ersek said: "The length check is off by one (in the safe direction); it
should be (nchars >= 2). The processing should be active for the wide string
L"\r\n" -- resulting in the empty wide string --, I believe."
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions