From: Nicholas Guriev Date: Fri, 28 May 2021 12:34:42 +0000 (+0300) Subject: Reject reversed frames X-Git-Tag: submit/tizen/20220408.011942~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea3030b32aa18aa551351455c152614abb7e2855;p=platform%2Fcore%2Fuifw%2Flottie-player.git Reject reversed frames Change-Id: I162cfaf0a68967f2e248a3c3af4a0fbb2ce30a54 Signed-off-by: jykeon --- diff --git a/src/lottie/lottieparser.cpp b/src/lottie/lottieparser.cpp index 3cb3f76..ebaaf3e 100644 --- a/src/lottie/lottieparser.cpp +++ b/src/lottie/lottieparser.cpp @@ -688,6 +688,10 @@ void LottieParserImpl::parseComposition() // don't have a valid bodymovin header return; } + if (comp->mStartFrame > comp->mEndFrame) { + // reveresed animation? missing data? + return; + } if (!IsValid()) { return; }