Petr Gajdos
6fbdde71f7
- added patches fix CVE-2023-1729 [bsc#1210720], a heap-buffer-overflow in raw2image_ex() + libraw-CVE-2023-1729.patch OBS-URL: https://build.opensuse.org/package/show/graphics/libraw?expand=0&rev=152
15 lines
522 B
Diff
15 lines
522 B
Diff
diff --git a/src/preprocessing/raw2image.cpp b/src/preprocessing/raw2image.cpp
|
|
index e65e2ad7..702cf290 100644
|
|
--- a/src/preprocessing/raw2image.cpp
|
|
+++ b/src/preprocessing/raw2image.cpp
|
|
@@ -43,6 +43,8 @@ void LibRaw::raw2image_start()
|
|
|
|
// adjust for half mode!
|
|
IO.shrink =
|
|
+ !imgdata.rawdata.color4_image && !imgdata.rawdata.color3_image &&
|
|
+ !imgdata.rawdata.float4_image && !imgdata.rawdata.float3_image &&
|
|
P1.filters &&
|
|
(O.half_size || ((O.threshold || O.aber[0] != 1 || O.aber[2] != 1)));
|
|
|
|
|