Chromium Code Reviews
DescriptionOnly 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 #
Messages
Total messages: 14 (10 generated)
|
|||||||||||||||||||