File CVE-2017-9239.patch of Package exiv2.26639

Index: exiv2-0.23/src/tiffcomposite.cpp
===================================================================
--- exiv2-0.23.orig/src/tiffcomposite.cpp
+++ exiv2-0.23/src/tiffcomposite.cpp
@@ -1612,6 +1612,8 @@ namespace Exiv2 {
     uint32_t TiffImageEntry::doWriteImage(IoWrapper& ioWrapper,
                                           ByteOrder  /*byteOrder*/) const
     {
+        if ( !pValue() ) throw Error(21); // #1296
+
         uint32_t len = pValue()->sizeDataArea();
         if (len > 0) {
 #ifdef DEBUG
openSUSE Build Service is sponsored by