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

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