mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-27 00:26:51 +00:00
![]() Fix runtime error when float values exceed uint8_t range (0-255). The getValue(uint8_t&) function was directly casting float values multiplied by 2.55f to uint8_t without range validation. This caused overflow errors when input values exceeded ~100% (e.g. opacity value is greater than 100). Added tvg::clamp() to ensure values stay within valid uint8_t range (0-255), preventing runtime overflow errors. |
||
---|---|---|
.. | ||
bindings | ||
common | ||
loaders | ||
renderer | ||
savers | ||
meson.build |