From: Daniel Kolesa Date: Wed, 15 Jul 2015 15:24:27 +0000 (+0100) Subject: image_savers/jpeg: fix undefined behavior of using sigsetjmp on jmp_buf X-Git-Tag: v1.15.0-beta2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84c7751e195ea29efffbe55eaa732e739402a04a;p=platform%2Fupstream%2Fefl.git image_savers/jpeg: fix undefined behavior of using sigsetjmp on jmp_buf @fix --- diff --git a/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c b/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c index 3ef082e..fc16185 100644 --- a/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c +++ b/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c @@ -15,7 +15,7 @@ static Evas_Image_Save_Func evas_image_save_jpeg_func = struct _JPEG_error_mgr { struct jpeg_error_mgr pub; - jmp_buf setjmp_buffer; + sigjmp_buf setjmp_buffer; }; typedef struct _JPEG_error_mgr *emptr; @@ -26,7 +26,7 @@ _JPEGFatalErrorHandler(j_common_ptr cinfo) emptr errmgr; errmgr = (emptr) cinfo->err; - longjmp(errmgr->setjmp_buffer, 1); + siglongjmp(errmgr->setjmp_buffer, 1); return; }