Chromium Code Reviews
Description[qcms] Fix overflow when reading parametric gamma curves
The ICC spec does not impose input restrictions to compute a parametric
curve LUT. The largest value computed can reach about pow(65536,32768).
To prevent explicit handling of a large double, use powf(), and prevent
precision loss by executing right-to-left.
BUG=708143
Review-Url: https://codereview.chromium.org/2796893002
Cr-Commit-Position: refs/heads/master@{#461947}
Committed: https://chromium.googlesource.com/chromium/src/+/0eb3418b597de14bff675fde0e575fbc947ff962
Patch Set 1 #Patch Set 2 : Sync up, fix QCMS tab vs. spaces per usual. #
Messages
Total messages: 15 (11 generated)
|
||||||||||||||||||||||||||||