This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit c0d2bce375184ccd8147f08e8126eb8939133011
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Tue Jan 2 20:07:09 2024 +0100

    JPG saver: Fix error path
    
    jpeg_finish_compress() may trigger longjmp() resulting in infinite loop.
---
 src/modules/loaders/loader_jpeg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/loaders/loader_jpeg.c b/src/modules/loaders/loader_jpeg.c
index 4b5d562..6cd4d57 100644
--- a/src/modules/loaders/loader_jpeg.c
+++ b/src/modules/loaders/loader_jpeg.c
@@ -343,11 +343,12 @@ _save(ImlibImage *im)
             QUIT_WITH_RC(LOAD_BREAK);
     }
 
+    jpeg_finish_compress(&jcs);
+
     rc = LOAD_SUCCESS;
 
   quit:
     /* finish off */
-    jpeg_finish_compress(&jcs);
     jpeg_destroy_compress(&jcs);
     free(buf);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to