corona
corona copied to clipboard
Fix: Loading an invalid image causes a crash
Platform: Linux
Fix the issue when Solar crashes with a segmentation fault on loading an invalid image file (.png, .jpg, .bmp).
Steps to reproduce:
- Create an empty file with the extension
.png(empty.png) - Put the following line in the new project's
main.lualocal background = display.newImageRect("empty.png", 600, 600)
Expected behavior:
Runtime Error is reported.
Actual behavior:
Solar crashed, leaving a log
libpng error: Read Error
Segmentation fault