File CVE-2017-18236.patch of Package exempi.6890

diff --git a/source/XMPFiles/FormatSupport/ASF_Support.cpp b/source/XMPFiles/FormatSupport/ASF_Support.cpp
index 1180f9d..e57b56d 100644
--- a/source/XMPFiles/FormatSupport/ASF_Support.cpp
+++ b/source/XMPFiles/FormatSupport/ASF_Support.cpp
@@ -266,6 +266,8 @@ bool ASF_Support::ReadHeaderObject ( LFA_FileRef fileRef, ObjectState& inOutObje
 
 				this->ReadHeaderExtensionObject ( fileRef, inOutObjectState, pos, objectBase );
 
+			} else if (objectBase.size == 0) {
+				break;
 			}
 
 			pos += objectBase.size;
openSUSE Build Service is sponsored by