aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkUniformHandler.cpp
diff options
context:
space:
mode:
authorGravatar Leon Scroggins III <scroggo@google.com>2017-09-28 14:33:57 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-28 19:51:32 +0000
commit4cdbf6056de29e8c12c3b1b4c2c2fa286cf68049 (patch)
treea01bcff9249a9b5daada122ea46c8c7b21aef63b /src/gpu/vk/GrVkUniformHandler.cpp
parentc3269aea5ba61a0c2228b029c7626802474825f4 (diff)
Avoid uninitialized memory in readByteArrayAsData
Bug: 769134 readByteArray can fail (due to not having enough available or due to the wrong alignment). If it does, do not return an uninitialized block of memory. Further, drop the initial size check, which is covered by readByteArray. Add a test. Change-Id: Ia101697c5bb1ca3ae3df1795f37a74b2f602797d Reviewed-on: https://skia-review.googlesource.com/52742 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'src/gpu/vk/GrVkUniformHandler.cpp')
0 files changed, 0 insertions, 0 deletions