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

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