From 8e870149f29f771cd27333af98a9a8e9b1382846 Mon Sep 17 00:00:00 2001 From: bohu Date: Fri, 17 Oct 2014 11:49:35 -0700 Subject: Handle empty length parameter on decoder side OpenGL standard allows empty length parameter and we should handle it properly to avoid crashing emulator. Change-Id: I3bd5da19461da0c1f84138a197ae770091458b57 (cherry picked from commit f3e18524d036044e416647bb0a86ecaa270b3494) --- emulator/opengl/host/libs/GLESv2_dec/gl2.attrib | 1 + 1 file changed, 1 insertion(+) (limited to 'emulator') diff --git a/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib b/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib index 7fe9a66..29f8358 100644 --- a/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib +++ b/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib @@ -151,6 +151,7 @@ glGetProgramInfoLog len infolog bufsize dir length out len length sizeof(GLsizei) + var_flag length nullAllowed #void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) glGetRenderbufferParameteriv -- cgit v1.1