summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2018-04-09 12:14:55 -0700
committer Dan Stoza <stoza@google.com> 2018-04-09 12:14:55 -0700
commit2d023068fe99d992933225a6722f3ec5a280fc94 (patch)
tree225fcf2e56fc7f2ddcb01ca44a21af61f87bd865 /vulkan/libvulkan/api.cpp
parent7c9764f39fbe1bbd9e9556c9294e490eb37635fc (diff)
Region: Speculative fix for ubsan abort
Adds a special case to Region::end() to handle mStorage being empty. By design, this should never happen, but something seems to be causing it to happen, so instead of allowing the ubsan abort to take down SurfaceFlinger, we work around the issue by special-casing size() == 0. Bug: 77643177 Test: By design this shouldn't happen, so it's not yet clear how to write a test to exercise it Change-Id: Ifaae2eb8e89460319e599205cd64f00d120279b8
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions