q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=84c7751e195ea29efffbe55eaa732e739402a04a

commit 84c7751e195ea29efffbe55eaa732e739402a04a
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Wed Jul 15 16:24:27 2015 +0100

    image_savers/jpeg: fix undefined behavior of using sigsetjmp on jmp_buf
    
    @fix
---
 src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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;
 }
 

-- 


Reply via email to