]> Git Repo - qemu.git/commit
qga: fix off-by-one length check
authorMarc-André Lureau <[email protected]>
Wed, 17 Feb 2016 16:47:54 +0000 (17:47 +0100)
committerMichael Roth <[email protected]>
Thu, 25 Feb 2016 15:48:51 +0000 (09:48 -0600)
commit25d943b95703ae45567395db4156b25052ee54c4
tree9377545cb6158a9393ef7d5583039a893271b2ae
parent6c6916dac8a146f2e8ee845a2a4e8d459a8689eb
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 <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Michael Roth <[email protected]>
Signed-off-by: Michael Roth <[email protected]>
qga/commands-win32.c
This page took 0.028677 seconds and 4 git commands to generate.