summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/evas/image_loaders/png/evas_image_load_png.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/evas/image_loaders/png/evas_image_load_png.c b/src/modules/evas/image_loaders/png/evas_image_load_png.c
index 3af01a1a2d..5b8d33f8d3 100644
--- a/src/modules/evas/image_loaders/png/evas_image_load_png.c
+++ b/src/modules/evas/image_loaders/png/evas_image_load_png.c
@@ -316,6 +316,12 @@ evas_image_load_file_head_with_data_png(void *loader_data,
316 if (!_evas_image_load_file_internal_head_png(loader, prop, &epi, error, EINA_FALSE)) 316 if (!_evas_image_load_file_internal_head_png(loader, prop, &epi, error, EINA_FALSE))
317 return EINA_FALSE; 317 return EINA_FALSE;
318 318
319 if (setjmp(png_jmpbuf(epi.png_ptr)))
320 {
321 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
322 goto close_file;
323 }
324
319 image_w = epi.w32; 325 image_w = epi.w32;
320 image_h = epi.h32; 326 image_h = epi.h32;
321 327
@@ -613,6 +619,12 @@ evas_image_load_file_data_png(void *loader_data,
613 if (!_evas_image_load_file_internal_head_png(loader, prop, &epi, error, EINA_FALSE)) 619 if (!_evas_image_load_file_internal_head_png(loader, prop, &epi, error, EINA_FALSE))
614 return EINA_FALSE; 620 return EINA_FALSE;
615 621
622 if (setjmp(png_jmpbuf(epi.png_ptr)))
623 {
624 *error = EVAS_LOAD_ERROR_CORRUPT_FILE;
625 goto close_file;
626 }
627
616 image_w = epi.w32; 628 image_w = epi.w32;
617 image_h = epi.h32; 629 image_h = epi.h32;
618 if (opts->emile.scale_down_by > 1) 630 if (opts->emile.scale_down_by > 1)