Blame SOURCES/0006-1296-Fix-submitted.patch

fac8f1
From 2f8681e120d277e418941c4361c83b5028f67fd8 Mon Sep 17 00:00:00 2001
fac8f1
From: clanmills <robin@clanmills.com>
fac8f1
Date: Sat, 27 May 2017 10:18:17 +0100
fac8f1
Subject: [PATCH 6/6] #1296 Fix submitted.
fac8f1
fac8f1
---
fac8f1
 src/tiffcomposite.cpp | 2 ++
fac8f1
 1 file changed, 2 insertions(+)
fac8f1
fac8f1
diff --git a/src/tiffcomposite.cpp b/src/tiffcomposite.cpp
fac8f1
index c6b860d..0c9b9c4 100644
fac8f1
--- a/src/tiffcomposite.cpp
fac8f1
+++ b/src/tiffcomposite.cpp
fac8f1
@@ -1611,6 +1611,8 @@ namespace Exiv2 {
fac8f1
     uint32_t TiffImageEntry::doWriteImage(IoWrapper& ioWrapper,
fac8f1
                                           ByteOrder  /*byteOrder*/) const
fac8f1
     {
fac8f1
+        if ( !pValue() ) throw Error(21); // #1296
fac8f1
+        
fac8f1
         uint32_t len = pValue()->sizeDataArea();
fac8f1
         if (len > 0) {
fac8f1
 #ifdef DEBUG
fac8f1
-- 
fac8f1
2.9.4
fac8f1