On 26.03.2014 13:05, Stefan Hajnoczi wrote:
From: Kevin Wolf <kw...@redhat.com>
It should neither become negative nor allow unbounded memory
allocations. This fixes aborts in g_malloc() and an s->catalog_bitmap
buffer overflow on big endian hosts.
Signed-off-by: Kevin Wolf <kw...@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
---
block/bochs.c | 13 +++++++++++++
tests/qemu-iotests/078 | 13 +++++++++++++
tests/qemu-iotests/078.out | 10 +++++++++-
3 files changed, 35 insertions(+), 1 deletion(-)
Reviewed-by: Max Reitz <mre...@redhat.com>