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

Issue 2693553002: Only initialize a std::string with data when the data has len > 0. (Closed)

Created:
3 years, 10 months ago by Geoff Lang
Modified:
3 years, 10 months ago
Reviewers:
Zhenyao Mo
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only initialize a std::string with data when the data has len > 0. When glGet[Shader|Program]InfoLog returned a zero-length info log, std::string would be initialized with garbage data. std::vector::data has an undefined return value when the size of the vector is 0. BUG=602737 CQ_INCLUDE_TRYBOTS=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/2693553002 Cr-Commit-Position: refs/heads/master@{#449867} Committed: https://chromium.googlesource.com/chromium/src/+/4a503e85de502aa541cae933a6cc7b6586b5b9cf

Patch Set 1 #

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

Messages

Total messages: 14 (10 generated)
Geoff Lang
PTAL
3 years, 10 months ago (2017-02-10 20:42:11 UTC) #5
Zhenyao Mo
On 2017/02/10 20:42:11, Geoff Lang wrote: > PTAL lgtm
3 years, 10 months ago (2017-02-10 20:54:33 UTC) #7
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/2693553002/1
3 years, 10 months ago (2017-02-11 16:59:46 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-02-11 17:08:31 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4a503e85de502aa541cae933a6cc...

Powered by Google App Engine
This is Rietveld 408576698