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

Issue 1947783002: If image sizes are greater than 32768, fixed point stepping will overflow an int. This CL changes t… (Closed)

Created:
4 years, 7 months ago by fbarchard1
Modified:
4 years, 7 months ago
Reviewers:
harryjin
Base URL:
https://chromium.googlesource.com/libyuv/libyuv@master
Target Ref:
refs/heads/master
Project:
libyuv
Visibility:
Public.

Description

If image sizes are greater than 32768, fixed point stepping will overflow an int. This CL changes the max size to 32768 and disables the test if larger. BUG=libyuv:590 TESTED=LIBYUV_FLAGS=-1 LIBYUV_WIDTH=8192 LIBYUV_HEIGHT=16 out/Release/libyuv_unittest --gtest_filter=* R=harryjin@google.com Committed: https://chromium.googlesource.com/libyuv/libyuv/+/07cb92272f393f91f8d6215633fbbaa04bbf0a1f

Patch Set 1 #

Patch Set 2 : make scaling subsample round up #

Total comments: 4

Patch Set 3 : Moved to helper in unittest.h #

Patch Set 4 : added comments about size limitation #

Patch Set 5 : comments updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -4 lines) Patch
M README.chromium View 1 chunk +1 line, -1 line 0 comments Download
M include/libyuv/version.h View 1 chunk +1 line, -1 line 0 comments Download
M unit_test/scale_argb_test.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M unit_test/scale_test.cc View 1 2 3 chunks +10 lines, -2 lines 0 comments Download
M unit_test/unit_test.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
fbarchard1
4 years, 7 months ago (2016-05-03 23:45:25 UTC) #1
harryjin
https://codereview.chromium.org/1947783002/diff/20001/unit_test/scale_argb_test.cc File unit_test/scale_argb_test.cc (right): https://codereview.chromium.org/1947783002/diff/20001/unit_test/scale_argb_test.cc#newcode31 unit_test/scale_argb_test.cc:31: if (src_width > 32768 || src_height > 32768 || ...
4 years, 7 months ago (2016-05-04 04:33:44 UTC) #3
fbarchard1
Test still passes.. [ OK ] LibYUVScaleTest.ScaleFrom1280x720_Box (4 ms) [----------] 194 tests from LibYUVScaleTest (1263 ...
4 years, 7 months ago (2016-05-05 23:37:02 UTC) #4
harryjin
lgtm
4 years, 7 months ago (2016-05-06 01:57:01 UTC) #5
fbarchard1
4 years, 7 months ago (2016-05-06 02:09:06 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
07cb92272f393f91f8d6215633fbbaa04bbf0a1f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698