replicant-frameworks_native/libs
Jamie Gennis d1b330de41 SurfaceTexture: fix an out of bounds array write
This change fixes an issue causing the mEglContext member of a SurfaceTexture
to get incorrectly zeroed out.  This would happen when a call to
ConsumerBase::releaseBufferLocked resulted in the current buffer being freed.
Freeing the current buffer would set SurfaceTexture::mCurrentTexture to -1,
which would then be used by SurfaceTexture::releaseBufferLocked to reset the
current slot's EGLSyncKHR to EGL_NO_SYNC_KHR (= 0).  This would overwrite the
mEglContext field, resulting in context mismatch errors in
SurfaceTexture::doGLFenceWaitLocked.

The fix is to simply use the buffer slot that's passed in to
SurfaceTexture::releaseBufferLocked rather than mCurrentTexture.

Change-Id: I0e5e2bd88fcbb354c35a3744f317716fff3e0e41
2012-09-21 12:15:22 -07:00
..
binder No longer need "original calling uid". 2012-08-31 15:40:58 -07:00
cpustats Fix log spam about CPU frequency on one device 2012-05-14 16:55:26 -07:00
gui SurfaceTexture: fix an out of bounds array write 2012-09-21 12:15:22 -07:00
ui Region::validate() cannot be called from addRectUnchecked() 2012-09-12 17:56:29 -07:00
utils Disable the use of clock_gettime for now. 2012-09-19 14:53:10 -07:00