Add a parameter check to some Gif/Jpg/Png decoding syscalls