aef0445c6f
There is memory corruption in below code const Rect* prev = &dst[prevIndex]; dst.add(Rect(prev->right, top, right, bottom)); prev points to a memory of vector dst, when dst resize in add() call, the memory that prev points to will be copy to the new allocated vector memory and the old memory will become undefined Avoid pointer in this case, use a local copy instead Change-Id: I4d95ceedd00c8fb615ac153082ade1b1ce0d0fa8 |
||
---|---|---|
.. | ||
tests | ||
Android.mk | ||
Fence.cpp | ||
FramebufferNativeWindow.cpp | ||
FrameStats.cpp | ||
GraphicBuffer.cpp | ||
GraphicBufferAllocator.cpp | ||
GraphicBufferMapper.cpp | ||
MODULE_LICENSE_APACHE2 | ||
NOTICE | ||
PixelFormat.cpp | ||
Rect.cpp | ||
Region.cpp | ||
UiConfig.cpp |