diff options
author | Markus Armbruster | 2013-01-15 15:42:32 +0100 |
---|---|---|
committer | Anthony Liguori | 2013-01-16 01:25:30 +0100 |
commit | cc69bda6c97a1c193348eb381f4bffdfd1c8a948 (patch) | |
tree | eee579c0c5657388a73451e6c09766330ce44f3f /hw/mips_r4k.c | |
parent | kvm: add stub for kvm_irqchip_update_msi_route (diff) | |
download | qemu-cc69bda6c97a1c193348eb381f4bffdfd1c8a948.tar.gz qemu-cc69bda6c97a1c193348eb381f4bffdfd1c8a948.tar.xz qemu-cc69bda6c97a1c193348eb381f4bffdfd1c8a948.zip |
sdl: Fix heap smash in sdl_zoom_rgb{16,32} for int > 32 bits
Careless use of malloc(): allocate Uint32[N], assign to int *, use
int[N].
Fix by converting to g_new().
Functions can't fail anymore, so make them return void. Caller
ignored the value anyway.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/mips_r4k.c')
0 files changed, 0 insertions, 0 deletions