[3.9] main/sdl_image: fix CVE-2019-13616

Merged Leo requested to merge Leo/aports:3.9-sdl_image into 3.9-stable

Merge request reports