+ libraw-half-size-allocation-buffer-overflow.patch

OBS-URL: https://build.opensuse.org/package/show/graphics/libraw?expand=0&rev=130
This commit is contained in:
2019-01-10 10:59:36 +00:00
committed by Git OBS Bridge
parent 07185dde95
commit 197c7d72fe
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
diff --git a/internal/dcraw_common.cpp b/internal/dcraw_common.cpp
index a0cd7226..6d1376f6 100644
--- a/internal/dcraw_common.cpp
+++ b/internal/dcraw_common.cpp
@@ -18997,10 +18997,15 @@ void CLASS identify()
{
if (!load_raw)
load_raw = &CLASS unpacked_load_raw;
- if (is_raw > 1 && !shot_select && !half_size)
+ 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;

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 10 10:57:32 UTC 2019 - Petr Gajdos <pgajdos@suse.com>
- supplementary fix for https://github.com/LibRaw/LibRaw/issues/195
+ libraw-half-size-allocation-buffer-overflow.patch
-------------------------------------------------------------------
Tue Jan 8 13:22:31 UTC 2019 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -32,6 +32,7 @@ Url: https://www.libraw.org/
#Git-Clone: git://github.com/LibRaw/LibRaw
Source: https://www.libraw.org/data/%tar_name-%version.tar.gz
Patch1: libraw-Add-Sony-ILCE-7M3.patch
Patch2: libraw-half-size-allocation-buffer-overflow.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
@@ -103,6 +104,7 @@ against LibRaw. LibRaw does not provide dynamic libraries.
%prep
%setup -q -n %{tar_name}-%{version}
%patch1 -p1
%patch2 -p1
%build
export CXXFLAGS="%{optflags} -fPIC -DUSE_ZLIB"