From 6e59eea0adc5d8e0a1fc30a509a229b79e93d785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Fri, 2 Feb 2018 09:55:53 -0500 Subject: [PATCH 3/5] Bug 102484 - Fix an infinite loop in ASF parser. --- source/XMPFiles/FormatSupport/ASF_Support.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.17.2