thorvg/src/loaders/lottie
Jinny You c8ddc316db lottie: Fix crash when an invalid gradient is provided
When lottie is broken and provides invalid gradient, the program crashes in segmentation fault.

At that time, in the `populate` function, `ColorStop& color` doesn't have `input` but tries to use it.

Added checking nullptr logic. The function `populate` will not proceed and return 0 in that case.

related issue: #2072
2024-04-06 12:08:23 +09:00
..
rapidjson loader lottie: +rapidjson for lottie json parser. 2023-07-27 00:31:27 +09:00
meson.build lottie: Introduce the LottieAnimation class 2024-04-06 12:08:21 +09:00
thorvg_lottie.h lottie: Support the slot reverting feature 2024-04-06 12:08:23 +09:00
tvgLottieAnimation.cpp lottie/api: specify clear result for override API 2024-04-06 12:08:21 +09:00
tvgLottieBuilder.cpp [common] code clean up 2024-04-06 12:08:23 +09:00
tvgLottieBuilder.h updated copyright date (#1866) 2024-01-02 20:34:12 +09:00
tvgLottieInterpolator.cpp lottie: Renamed function names with prefix 2024-04-06 12:08:21 +09:00
tvgLottieInterpolator.h updated copyright date (#1866) 2024-01-02 20:34:12 +09:00
tvgLottieLoader.cpp lottie: Support the slot reverting feature 2024-04-06 12:08:23 +09:00
tvgLottieLoader.h lottie: Support the slot reverting feature 2024-04-06 12:08:23 +09:00
tvgLottieModel.cpp [common] code clean up 2024-04-06 12:08:23 +09:00
tvgLottieModel.h lottie: Fix crash when an invalid gradient is provided 2024-04-06 12:08:23 +09:00
tvgLottieParser.cpp lottie: Support the slot reverting feature 2024-04-06 12:08:23 +09:00
tvgLottieParser.h lottie: Support the slot reverting feature 2024-04-06 12:08:23 +09:00
tvgLottieParserHandler.cpp updated copyright date (#1866) 2024-01-02 20:34:12 +09:00
tvgLottieParserHandler.h updated copyright date (#1866) 2024-01-02 20:34:12 +09:00
tvgLottieProperty.h lottie: Support the slot reverting feature 2024-04-06 12:08:23 +09:00