GLESv2Imp: fix bad return statement
android-emugl: add formatting strings to fprintf output, fixing possible security issue
This commit is contained in:
parent
830b2d815e
commit
785136fd36
4 changed files with 4 additions and 3 deletions
Binary file not shown.
|
|
@ -1048,8 +1048,10 @@ GL_APICALL void GL_APIENTRY glGetIntegerv(GLenum pname, GLint* params){
|
||||||
if (ctx->glGetIntegerv(pname,params))
|
if (ctx->glGetIntegerv(pname,params))
|
||||||
{
|
{
|
||||||
if (destroyCtx)
|
if (destroyCtx)
|
||||||
|
{
|
||||||
deleteGLESContext(ctx);
|
deleteGLESContext(ctx);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool es2 = ctx->getCaps()->GL_ARB_ES2_COMPATIBILITY;
|
bool es2 = ctx->getCaps()->GL_ARB_ES2_COMPATIBILITY;
|
||||||
|
|
|
||||||
|
|
@ -1158,8 +1158,7 @@ int ApiGen::genDecoderImpl(const std::string &filename)
|
||||||
varoffset.c_str(),
|
varoffset.c_str(),
|
||||||
varoffset.c_str(),
|
varoffset.c_str(),
|
||||||
varoffset.c_str(),
|
varoffset.c_str(),
|
||||||
classname.c_str(),
|
classname.c_str()
|
||||||
e->name().c_str()
|
|
||||||
);
|
);
|
||||||
|
|
||||||
varoffset += " + 4";
|
varoffset += " + 4";
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ bool EntryPoint::parse(unsigned int lc, const std::string & str)
|
||||||
std::string vartype, varname;
|
std::string vartype, varname;
|
||||||
if (!parseParameterDeclaration(field, &vartype, &varname, &error)) {
|
if (!parseParameterDeclaration(field, &vartype, &varname, &error)) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"line: %d: Parsing error in field <%s>\n",
|
"line: %d: Parsing error in field <%s>, error: %s\n",
|
||||||
lc,
|
lc,
|
||||||
field.c_str(),
|
field.c_str(),
|
||||||
error.c_str());
|
error.c_str());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue