From 5b8774e5c63f5becc2158a0d2151cbd022dc9b11e1022350326aaf3b5333d4db Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Thu, 16 Nov 2023 13:32:09 +0000 Subject: [PATCH] - update to 3.0.1 3.0.1 ===== * The x86-64 SIMD functions now use a standard stack frame, prologue, and epilogue so that debuggers and profilers can reliably capture backtraces from within the functions. * Fixed two minor issues in the interblock smoothing algorithm that caused mathematical (but not necessarily perceptible) edge block errors when decompressing progressive JPEG images exactly two MCU blocks in width or that use vertical chrominance subsampling. * Fixed a regression introduced by 3.0 beta2[6] that, in rare cases, caused the C Huffman encoder (which is not used by default on x86 and Arm CPUs) to generate incorrect results if the Neon SIMD extensions were explicitly disabled at build time (by setting the `WITH_SIMD` CMake variable to `0`) in an AArch64 build of libjpeg-turbo. 3.0.0 ===== * The TurboJPEG API now supports 4:4:1 (transposed 4:1:1) chrominance subsampling, which allows losslessly transposed or rotated 4:1:1 JPEG images to be losslessly cropped, partially decompressed, or decompressed to planar YUV images. * Fixed various segfaults and buffer overruns (CVE-2023-2804) that occurred when attempting to decompress various specially-crafted malformed 12-bit-per-component and 16-bit-per-component lossless JPEG images using color quantization or merged chroma upsampling/color conversion. The underlying cause of these issues was that the color quantization and merged chroma upsampling/color conversion algorithms were not designed with lossless decompression in mind. Since libjpeg-turbo explicitly does not support color conversion when compressing or decompressing lossless JPEG images, merged chroma upsampling/color conversion never should have been enabled for such OBS-URL: https://build.opensuse.org/package/show/graphics/libjpeg-turbo?expand=0&rev=147 --- libjpeg-turbo-1.3.0-tiff-ojpeg.patch | 8 +- libjpeg-turbo-2.1.5.1.tar.gz | 3 - libjpeg-turbo-2.1.5.1.tar.gz.sig | Bin 543 -> 0 bytes libjpeg-turbo-3.0.1.tar.gz | 3 + libjpeg-turbo-3.0.1.tar.gz.sig | Bin 0 -> 543 bytes libjpeg-turbo.changes | 196 +++++++++++++++++++++++++++ libjpeg-turbo.spec | 6 +- 7 files changed, 207 insertions(+), 9 deletions(-) delete mode 100644 libjpeg-turbo-2.1.5.1.tar.gz delete mode 100644 libjpeg-turbo-2.1.5.1.tar.gz.sig create mode 100644 libjpeg-turbo-3.0.1.tar.gz create mode 100644 libjpeg-turbo-3.0.1.tar.gz.sig diff --git a/libjpeg-turbo-1.3.0-tiff-ojpeg.patch b/libjpeg-turbo-1.3.0-tiff-ojpeg.patch index 12db22a..b52dc20 100644 --- a/libjpeg-turbo-1.3.0-tiff-ojpeg.patch +++ b/libjpeg-turbo-1.3.0-tiff-ojpeg.patch @@ -1,6 +1,8 @@ ---- a/jdhuff.c -+++ b/jdhuff.c -@@ -649,3 +649,35 @@ +Index: libjpeg-turbo-3.0.1/jdhuff.c +=================================================================== +--- libjpeg-turbo-3.0.1.orig/jdhuff.c ++++ libjpeg-turbo-3.0.1/jdhuff.c +@@ -834,3 +834,35 @@ jinit_huff_decoder(j_decompress_ptr cinf entropy->dc_derived_tbls[i] = entropy->ac_derived_tbls[i] = NULL; } } diff --git a/libjpeg-turbo-2.1.5.1.tar.gz b/libjpeg-turbo-2.1.5.1.tar.gz deleted file mode 100644 index 6bdc0f6..0000000 --- a/libjpeg-turbo-2.1.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2fdc3feb6e9deb17adec9bafa3321419aa19f8f4e5dea7bf8486844ca22207bf -size 2264936 diff --git a/libjpeg-turbo-2.1.5.1.tar.gz.sig b/libjpeg-turbo-2.1.5.1.tar.gz.sig deleted file mode 100644 index 136d0ea17a56ac1a86eee28e96bb2504772efc45c16a9208e49d8b84de6c9793..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 543 zcmV+)0^t3L0vrSY0RjL91p;H^!Davo2@rn5+qU%E^fZJ*5B@fsu+_7-pN?Cv&BPjZ z%_h0-w#Ee@Y~8GQ{ik|K`wzY^p(z5LS$Ptiw717cgL^;mfXPKqV^_JrCo>~r9w{qf zU&I(|lmZGIBWxM<=i$Ayy7H+8=zV$5AzC{hrCQiP{H@T=Z&O2sc^GbeA{VDX4Uk(# zizri+X(E8pj^h$QCd|bscS+n>3k_jP$-fs!q%x`n+c<;q&|3qF^>_F0jkIj%ne=`iK0d~#a&UVa& zM^m<>yuAw*0K(2ISa-LgX;0+yB%T;X>c9&OD#ciH hb_aYhtsN*L{#1!nk7L&iFL{T@0s*QSFc4CbE4>T>0+;{* diff --git a/libjpeg-turbo-3.0.1.tar.gz b/libjpeg-turbo-3.0.1.tar.gz new file mode 100644 index 0000000..169e873 --- /dev/null +++ b/libjpeg-turbo-3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22429507714ae147b3acacd299e82099fce5d9f456882fc28e252e4579ba2a75 +size 2800900 diff --git a/libjpeg-turbo-3.0.1.tar.gz.sig b/libjpeg-turbo-3.0.1.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..2fa127ce4cf3d9bda8f2e1119ba9e352a6bd299b928315f1361d00e5206b56fa GIT binary patch literal 543 zcmV+)0^t3L0vrSY0RjL91p;L)bs_)?2@rn5+qU%E^fbUF5B(JL4r2+wLFQ_U@$kJ)?RokC0+Cbbsq?!2#{T>Lrsob#mhBAF>vuY?2tzf5 z-k+{WeT8|VZO-fK1|qNAUhbmR4;t|AvmQ?gltABqq27XFBfi1-BQ<9{7KWU{DKcZp z(;R$3LDZwjbbKUm??a{kLUXHZgUYlA+sv5-=R;%GFyQo!ruO<$YvpY}yKrafx=ng= z7_Ulrr+^SOw3HRQUSo0pHgB7m8M}-|O_!H|n~jEZ-%}tzUG+NRg@Q}dq-u}6w5SGV zR5iszP$<_=ZsRc8kWI>jx$9UtAiVO#hm~j(xXM6m0b!RQo_-g|ETw6S41)9oyYRSH zFhQg^hnj?f<=oh~*!AhI7E~Z_8*MD)z>{za(kU1tW1n;sdQ^U zKG!5k582k+Z``gnP52 zH?8sha7rL3jii}BI5wd*UDi#Qp}E*twbTvEgaAA7LbSs`2`)XNkPJ7 hVse|eA!b-Sxv;<1mPB5!!OezNff45l!#9F#t$Ha`5pn