Chromium Code Reviews
Description[qcms] Fix integer overflow in lut_inverse_interp16
Inverting a large input gamma table that is degenerate (has poles and
zeros) can cause an integer overflow in lut_inverse_interp16 (noticed
by UBSan, see bug) when computing the binary search range.
Use float to compute the search range to avoid integer overflow, then
truncate to int when setting the range variables.
BUG=711751
Review-Url: https://codereview.chromium.org/2825623002
Cr-Commit-Position: refs/heads/master@{#466059}
Committed: https://chromium.googlesource.com/chromium/src/+/e4ce3b5145a1fb2a038ccd071bcab45799a3895e
Patch Set 1 #
Messages
Total messages: 16 (10 generated)
|
||||||||||||||||||||||||||||