Go to file
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
build Dalvik heap size for a 10" xhdpi tablet. 2012-08-01 18:14:45 -07:00
cmds Merge "Use a named constant rather than a magic number." into jb-mr1-dev 2012-09-17 12:11:25 -07:00
data/etc Move com.nxp.mifare to frameworks/native. 2012-04-12 21:24:08 -07:00
include We now report hotplug events to the framework 2012-09-20 17:13:58 -07:00
libs SurfaceTexture: fix an out of bounds array write 2012-09-21 12:15:22 -07:00
opengl Add a spec for EGL_ANDROID_framebuffer_target. 2012-09-21 12:15:22 -07:00
services fix a typo preventing pre hwc-1.1 devices from booting 2012-09-20 19:27:07 -07:00
MODULE_LICENSE_APACHE2
NOTICE