replicant-frameworks_native/camera/libcameraservice
Dave Sparks 23c21baf27 Hold a lock while we access the preview heap.
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.
2009-11-06 11:47:13 -08:00
..
Android.mk
CameraHardwareStub.cpp
CameraHardwareStub.h
CameraService.cpp Hold a lock while we access the preview heap. 2009-11-06 11:47:13 -08:00
CameraService.h
CannedJpeg.h
FakeCamera.cpp
FakeCamera.h