File libraw-half-size-allocation-buffer-overflow.patch of Package libraw.27864

Index: LibRaw-0.15.4/internal/dcraw_common.cpp
===================================================================
--- LibRaw-0.15.4.orig/internal/dcraw_common.cpp	2019-01-10 11:05:08.653936479 +0100
+++ LibRaw-0.15.4/internal/dcraw_common.cpp	2019-01-10 11:16:37.329197349 +0100
@@ -8673,7 +8673,11 @@ void CLASS identify2(unsigned fsize, uns
       data_offset = 68;
     }
     if (!load_raw) load_raw = &CLASS unpacked_load_raw;
+    if (is_raw > 1 && !shot_select) filters = 0;
     maximum = 0x3fff;
+  } else if(load_raw == &LibRaw::sinar_4shot_load_raw) {
+    if (is_raw > 1 && !shot_select)
+      filters = 0;
   } else if (!strcmp(make,"Leaf")) {
     maximum = 0x3fff;
     fseek (ifp, data_offset, SEEK_SET);
openSUSE Build Service is sponsored by