DescriptionFix int32 overflow in LinearGradientContext::shade4_dx_clamp
The unconditional increment in shade4_dx_clamp can overflow int32
=> n == SK_MinS32
=> count ~= SK_MinS32
=> we skip the main shader loop 'cause count < 0
R=reed@google.com,mtklein@google.com
BUG=chromium:599458
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2010843002
Committed: https://skia.googlesource.com/skia/+/7b38e3cf75296c749c843fa89af14f70f4e4b2db
Patch Set 1 #
Messages
Total messages: 19 (7 generated)
|