Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1449)

Issue 2825623002: [qcms] Fix integer overflow in lut_inverse_interp16 (Closed)

Created:
3 years, 8 months ago by Noel Gordon
Modified:
3 years, 8 months ago
Reviewers:
robert.bradford
CC:
chromium-reviews, hubbe
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M third_party/qcms/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/qcms/src/transform_util.c View 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Noel Gordon
PTAL.
3 years, 8 months ago (2017-04-18 01:38:16 UTC) #4
Noel Gordon
Maybe Robert could do this one.
3 years, 8 months ago (2017-04-20 15:32:18 UTC) #9
robert.bradford
lgtm. I do wonder whether there needs to be a check for sane LUT lengths ...
3 years, 8 months ago (2017-04-20 16:13:26 UTC) #10
Noel Gordon
On 2017/04/20 16:13:26, robert.bradford wrote: > lgtm. I do wonder whether there needs to be ...
3 years, 8 months ago (2017-04-20 16:21:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2825623002/1
3 years, 8 months ago (2017-04-20 16:21:49 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 17:49:34 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e4ce3b5145a1fb2a038ccd071bca...

Powered by Google App Engine
This is Rietveld 408576698