mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
As pointed by Coverity, the function blindly trust the data read from the file, but in case of problem (corrupted file, not enough memory) it could behave badly. This patch adds a check for the depth, counts on RCreateImage to check the width and height, and in any case it now includes a message for the user in case he would like to understand what's wrong. Signed-off-by: Christophe CURIS <christophe.curis@free.fr> Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
62 KiB
62 KiB