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

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