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 In the simulator, make sure that the preview thread is a Java thread, 2009-08-13 09:24:47 -07:00
CameraHardwareStub.cpp Add zoom functions and sendCommand. 2009-10-06 13:25:10 -07:00
CameraHardwareStub.h Add zoom functions and sendCommand. 2009-10-06 13:25:10 -07:00
CameraService.cpp Hold a lock while we access the preview heap. 2009-11-06 11:47:13 -08:00
CameraService.h Use image rect information to display zoomed picture. 2009-10-29 13:20:26 +08:00
CannedJpeg.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
FakeCamera.cpp Automated import from //branches/donutburger/...@141782,141782 2009-03-24 20:53:55 -07:00
FakeCamera.h Automated import from //branches/donutburger/...@141992,141992 2009-03-24 21:16:04 -07:00