summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2018-02-02 09:55:53 -0500
committerHubert Figuière <hub@figuiere.net>2018-02-02 09:55:53 -0500
commitfe59605d3520bf2ca4e0a963d194f10e9fee5806 (patch)
treebf6df3db61d3f9e8ef3e058f4390f1a1ee570fb2
parent886cd1d2314755adb1f4cdb99c16ff00830f0331 (diff)
Bug 102484 - Fix an infinite loop in ASF parser.
-rw-r--r--XMPFiles/source/FormatSupport/ASF_Support.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/XMPFiles/source/FormatSupport/ASF_Support.cpp b/XMPFiles/source/FormatSupport/ASF_Support.cpp
index 709aea5..95fd192 100644
--- a/XMPFiles/source/FormatSupport/ASF_Support.cpp
+++ b/XMPFiles/source/FormatSupport/ASF_Support.cpp
@@ -270,6 +270,8 @@ bool ASF_Support::ReadHeaderObject ( XMP_IO* fileRef, ObjectState& inOutObjectSt
this->ReadHeaderExtensionObject ( fileRef, inOutObjectState, pos, objectBase );
+ } else if (objectBase.size == 0) {
+ break;
}
pos += objectBase.size;