File libraw-half-size-allocation-buffer-overflow.patch of Package libraw
Index: LibRaw-0.18.9/internal/dcraw_common.cpp
===================================================================
--- LibRaw-0.18.9.orig/internal/dcraw_common.cpp 2019-01-10 10:37:17.098048487 +0100
+++ LibRaw-0.18.9/internal/dcraw_common.cpp 2019-01-10 10:40:00.390813828 +0100
@@ -15198,8 +15198,11 @@ konica_400z:
}
} else if (!strncmp(make,"Sinar",5)) {
if (!load_raw) load_raw = &CLASS unpacked_load_raw;
- if (is_raw > 1 && !shot_select && !half_size) filters = 0;
+ 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 (!strncmp(make,"Leaf",4)) {
maximum = 0x3fff;
fseek (ifp, data_offset, SEEK_SET);