DescriptionBetter overflow handling for aspect-ratio MQ.
This change fixes two issues:
1. Clamp instead of casting double values from parser to internal
unsigned storage.
2. Promote width/height/numerator/denominator multiplications to double
to avoid integer overflow for large numerator/denominators.
R=yoav@yoav.ws,suzyh@chromium.org
BUG=676709, 714079
Review-Url: https://codereview.chromium.org/2836613002
Cr-Commit-Position: refs/heads/master@{#467615}
Committed: https://chromium.googlesource.com/chromium/src/+/cf115265d17e7eec4e8c6c2d4441942988dc84db
Patch Set 1 #
Messages
Total messages: 15 (8 generated)
|