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

Issue 2892663004: Fix signed integer overflow in gles2_cmd_decoder_unittest_extensions.cc (Closed)

Created:
3 years, 7 months ago by hans
Modified:
3 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, piman+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix signed integer overflow in gles2_cmd_decoder_unittest_extensions.cc New versions of Clang warns about this. BUG=724186 TBR=jbauman CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2892663004 Cr-Commit-Position: refs/heads/master@{#472932} Committed: https://chromium.googlesource.com/chromium/src/+/93304bdb30f35daf45c935a39f23d7277ee6ccfa

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc View 3 chunks +3 lines, -3 lines 2 comments Download

Messages

Total messages: 18 (7 generated)
hans
Please take a look.
3 years, 7 months ago (2017-05-18 17:38:21 UTC) #3
Nico
Thanks! https://codereview.chromium.org/2892663004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc File gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc (right): https://codereview.chromium.org/2892663004/diff/1/gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc#newcode592 gpu/command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc:592: delete_cmd.Init(static_cast<GLuint>(std::numeric_limits<GLsizei>::max()) + 1, Isn't GLsizei an unsigned type ...
3 years, 7 months ago (2017-05-18 17:40:23 UTC) #4
hans
Also I haven't actually confirmed that this defeats the warning as my clang build is ...
3 years, 7 months ago (2017-05-18 17:48:20 UTC) #5
Nico
https://www.khronos.org/opengl/wiki/OpenGL_Type says "non negative". I thought this was the size_t of OpenGL. On May 18, ...
3 years, 7 months ago (2017-05-18 18:08:43 UTC) #6
Nico
(you're right that it's wider than int though, that's a good point) On May 18, ...
3 years, 7 months ago (2017-05-18 18:09:10 UTC) #7
hans
On 2017/05/18 18:09:10, Nico wrote: > (you're right that it's wider than int though, that's ...
3 years, 7 months ago (2017-05-18 18:15:53 UTC) #8
hans
+jbauman for ownership
3 years, 7 months ago (2017-05-18 18:27:47 UTC) #10
Nico
lgtm Init() takes a GLuint as first arg, so this code wants to pass an ...
3 years, 7 months ago (2017-05-18 18:55:33 UTC) #11
hans
tbr'ing for ownership as bots are red due to this
3 years, 7 months ago (2017-05-18 19:06:22 UTC) #13
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/2892663004/1
3 years, 7 months ago (2017-05-18 19:07:39 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 21:07:04 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/93304bdb30f35daf45c935a39f23...

Powered by Google App Engine
This is Rietveld 408576698