File CVE-2017-18233.patch of Package exempi.6890
diff --git a/source/XMPFiles/FormatSupport/RIFF.cpp b/source/XMPFiles/FormatSupport/RIFF.cpp
index 3992edd..00f67e5 100644
--- a/source/XMPFiles/FormatSupport/RIFF.cpp
+++ b/source/XMPFiles/FormatSupport/RIFF.cpp
@@ -155,7 +155,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun
this->oldPos = LFA_Tell( file );
this->id = LFA_ReadUns32_LE( file );
- this->oldSize = LFA_ReadUns32_LE( file ) + 8;
+ this->oldSize = LFA_ReadUns32_LE( file );
+ this->oldSize += 8;
// Make sure the size is within expected bounds.
XMP_Int64 chunkEnd = this->oldPos + this->oldSize;