« Previous | Next » 

Revision cc69bda6

IDcc69bda6c97a1c193348eb381f4bffdfd1c8a948

Added by Markus Armbruster over 11 years ago

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 <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences