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 10:07:35 -0500
commit913fe9af9cc61d5012779d7c81afd03c68fd9064 (patch)
tree270d13bc3fa999def977baf13f0ef390ae35f3a8
parent5c682c369cc1a2ea096065b253a7557be5845097 (diff)
2.4.x: 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 c7e2bc1..8b2c73b 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;