]> git.ipfire.org Git - thirdparty/qemu.git/commit
qxl-render: add more sanity checks
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 29 Aug 2014 07:27:52 +0000 (09:27 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 10 Sep 2014 14:30:57 +0000 (09:30 -0500)
commit67cfda87763775abbfcb5ec7381f506fea500735
treec13dc27ce9907888d8682ff09aafe397dccd070c
parent4fd144f8f52cdc99c0bdcfc2021219f483d997f8
qxl-render: add more sanity checks

Damn, the dirty rectangle values are signed integers.  So the checks
added by commit 788fbf042fc6d5aaeab56757e6dad622ac5f0c21 are not good
enough, we also have to make sure they are not negative.

[ Note: There must be something broken in spice-server so we get
  negative values in the first place.  Bug opened:
  https://bugzilla.redhat.com/show_bug.cgi?id=1135372 ]

Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
(cherry picked from commit 503b3b33feca818baa4459aba286e54a528e5567)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/display/qxl-render.c