Skip to content
Snippets Groups Projects
Commit cc69bda6 authored by Markus Armbruster's avatar Markus Armbruster Committed by Anthony Liguori
Browse files

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: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent dabe3143
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment