diff options
author | Markus Armbruster <armbru@pond.sub.org> | 2013-01-10 14:24:49 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-01-14 08:59:38 +0100 |
commit | bc5f92e5db6f303e73387278e32f8669f0abf0e5 (patch) | |
tree | 006ad6ca4e2bf25ce973c765e9198669faaf8671 /qemu-tool.c | |
parent | 63fb2590839162afdf14d7c0ee02d460766c0956 (diff) | |
download | hqemu-bc5f92e5db6f303e73387278e32f8669f0abf0e5.zip hqemu-bc5f92e5db6f303e73387278e32f8669f0abf0e5.tar.gz |
qxl: Fix SPICE_RING_PROD_ITEM(), SPICE_RING_CONS_ITEM() sanity check
The pointer arithmetic there is safe, but ugly. Coverity grouses
about it. However, the actual comparison is off by one: <= end
instead of < end. Fix by rewriting the check in a cleaner way.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qemu-tool.c')
0 files changed, 0 insertions, 0 deletions