diff options
| author | 2012-10-25 15:58:43 -0700 | |
|---|---|---|
| committer | 2012-11-01 16:33:50 -0700 | |
| commit | 7e251273880c4108bc56b4cdc52f6193876ef59a (patch) | |
| tree | 85f5222635ac299c05afa458d30d9d3d28cf6632 /libs/gui/SurfaceComposerClient.cpp | |
| parent | 446ba53792356350f4e9d5cbd796f020da44b0c7 (diff) | |
Ensure that Vector::erase() returns a valid iterator
Vector::erase may reallocate the Vector's storage while removing an element.
However, erase() calls begin() before calling removeItemsAt(), thus caching
a pointer the the Vector's old storage. If the storage is reallocated,
the iterator returned by erase() will be based on the old storage pointer
and will thus be invalid.
Bug: 7433283
Change-Id: I91980e0fcb5a2e0a55f1a78444a5958037afdbed
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions