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

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