summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2021-06-21 22:30:51 +0000
committer Siarhei Vishniakou <svv@google.com> 2021-06-22 14:29:41 -0700
commitbeb878bcfb6c7e0cf0954934a0d364a4298eb840 (patch)
tree431ec8aa8ce419a6066822d88f56ca88c9d027ea /libs/gui/BLASTBufferQueue.cpp
parent58fbf9fb2c82ee09b0d572e0936b8370c4d35aef (diff)
Do not modify vector after getting references
We used to obtain a reference to a specific element inside a vector. We would then modify the vector, invalidating the reference. But we then used the reference, and passed it to 'assignPointerIds'. Refactor the code to modify the collection first, and then to proceed with modifying / reading the elements. Bug: 179839665 Test: atest inputflinger_tests (on a hwasan build) Merged-In: I9204b954884e9c83a50babdad5e08a0f6d18ad78 Change-Id: I9204b954884e9c83a50babdad5e08a0f6d18ad78
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions