Skip to content

Fix integer overflow in Gradient::populate()#592

Merged
JoogabYun merged 1 commit into
Samsung:masterfrom
mihashco:fix-gradient-populate-overflow
Jun 5, 2026
Merged

Fix integer overflow in Gradient::populate()#592
JoogabYun merged 1 commit into
Samsung:masterfrom
mihashco:fix-gradient-populate-overflow

Conversation

@mihashco

@mihashco mihashco commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

A signed integer overflow vulnerability existed in src/lottie/lottiemodel.cpp where the colorPoints value from untrusted JSON input (g.p field) could be set to values >= 0x40000000, causing colorPoints * 4 to overflow to 0. This bypassed the bounds check and led to a heap buffer over-read during gradient rendering.

A signed integer overflow vulnerability existed in `src/lottie/lottiemodel.cpp`
where the `colorPoints` value from untrusted JSON input (`g.p` field) could be
set to values >= 0x40000000, causing `colorPoints * 4` to overflow to 0.
This bypassed the bounds check and led to a heap buffer over-read
during gradient rendering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants