Files
qemu/ui
Markus Armbruster 02835d5744 vnc: Fix tight_detect_smooth_image() for lossless case
VncTight member uint8_t quality is either (uint8_t)-1 for lossless or
less than 10 for lossy.

tight_detect_smooth_image() first promotes it to int, then compares
with -1.  Always unequal, so we always execute the lossy code.  Reads
beyond tight_conf[] and returns crap when quality is actually
lossless.

Compare to (uint8_t)-1 instead, like we do elsewhere.

Spotted by Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 2e7bcdb99a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-07-15 19:28:02 -05:00
..
2013-11-13 16:02:28 +04:00
2012-12-19 08:31:31 +01:00
2013-11-25 20:36:27 -08:00
2012-12-19 08:31:30 +01:00
2012-12-19 08:31:31 +01:00
2013-10-17 12:42:54 +02:00
2013-10-17 12:42:54 +02:00
2013-03-18 10:21:58 +01:00
2012-11-01 19:49:45 +01:00
2013-05-03 12:04:57 -05:00
2013-08-22 19:10:27 +02:00
2013-05-03 12:04:57 -05:00
2013-05-03 12:04:57 -05:00