File libjpeg-turbo-CVE-2020-17541.patch of Package libjpeg-turbo.25864

Index: libjpeg-turbo-1.5.3/jchuff.c
===================================================================
--- libjpeg-turbo-1.5.3.orig/jchuff.c	2021-06-03 10:33:13.901454407 +0200
+++ libjpeg-turbo-1.5.3/jchuff.c	2021-06-03 10:33:24.553511563 +0200
@@ -428,7 +428,7 @@ dump_buffer (working_state *state)
  * scanning order-- 1, 8, 16, etc.), then this will produce an encoded block
  * larger than 200 bytes.
  */
-#define BUFSIZE (DCTSIZE2 * 4)
+#define BUFSIZE (DCTSIZE2 * 8)
 
 #define LOAD_BUFFER() { \
   if (state->free_in_buffer < BUFSIZE) { \
openSUSE Build Service is sponsored by