SDL_image: Fix unaligned and potentially out of bound access
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 22 Nov 2019 11:28:57 +0000 (12:28 +0100)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Tue, 7 Apr 2020 09:16:57 +0000 (11:16 +0200)
commit72afe7ebd8305bf4f5360293b8621cde52ec506b
tree17592a70855864abf052d57964c3499465e42a4f
parent6cb33189fb2911cf2f1be36df594bf4634aefb46
SDL_image: Fix unaligned and potentially out of bound access

SDL_image allocates an unpadded buffer of height * pitch, causing the
access to the last pixel to be one byte out of bounds

(cherry picked from commit 882147a6b2134de33cabe07923818b95598fb11a)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
modules/codec/sdl_image.c