23c21baf27
copyFrameAndPostCopiedFrame was not holding a lock while it accessed the preview heap. If the client process is torn down while the heap is accessed, the memcpy could access memory that was deallocated. This patch creates a local sp reference to the preview heap while holding the lock, then releases the lock. This should prevent the heap from being pulled out from underneath us. |
||
---|---|---|
.. | ||
Android.mk | ||
CameraHardwareStub.cpp | ||
CameraHardwareStub.h | ||
CameraService.cpp | ||
CameraService.h | ||
CannedJpeg.h | ||
FakeCamera.cpp | ||
FakeCamera.h |