summaryrefslogtreecommitdiff
path: root/src/modules/evas/image_savers
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-07-15 16:24:27 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-07-15 16:24:27 +0100
commit84c7751e195ea29efffbe55eaa732e739402a04a (patch)
tree5491c1e291bdbcec5ad4dae29929d35cd0efdb28 /src/modules/evas/image_savers
parent48936722f9a24af4d72b12c90f9d1d2a66bb385a (diff)
image_savers/jpeg: fix undefined behavior of using sigsetjmp on jmp_buf
@fix
Diffstat (limited to 'src/modules/evas/image_savers')
-rw-r--r--src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c4
1 files 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 3ef082e6dc..fc161855ce 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 =
15struct _JPEG_error_mgr 15struct _JPEG_error_mgr
16{ 16{
17 struct jpeg_error_mgr pub; 17 struct jpeg_error_mgr pub;
18 jmp_buf setjmp_buffer; 18 sigjmp_buf setjmp_buffer;
19}; 19};
20typedef struct _JPEG_error_mgr *emptr; 20typedef struct _JPEG_error_mgr *emptr;
21 21
@@ -26,7 +26,7 @@ _JPEGFatalErrorHandler(j_common_ptr cinfo)
26 emptr errmgr; 26 emptr errmgr;
27 27
28 errmgr = (emptr) cinfo->err; 28 errmgr = (emptr) cinfo->err;
29 longjmp(errmgr->setjmp_buffer, 1); 29 siglongjmp(errmgr->setjmp_buffer, 1);
30 return; 30 return;
31} 31}
32 32