Merge pull request #646 from LocutusOfBorg/fix-security-buffer-overflows
Fix security buffer overflows
This commit is contained in:
commit
77f3badb97
8 changed files with 11 additions and 10 deletions
|
|
@ -5,8 +5,8 @@ include(CTest)
|
|||
include(GNUInstallDirs)
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE)
|
||||
message(STATUS "No build type selected, default to release")
|
||||
set(CMAKE_BUILD_TYPE "release")
|
||||
message(STATUS "No build type selected, default to RelWithDebInfo")
|
||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
|
||||
endif()
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||
|
|
|
|||
2
debian/compat
vendored
2
debian/compat
vendored
|
|
@ -1 +1 @@
|
|||
7
|
||||
9
|
||||
|
|
|
|||
4
debian/control
vendored
4
debian/control
vendored
|
|
@ -2,8 +2,8 @@ Source: anbox
|
|||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: Simon Fels <morphis@gravedo.de>
|
||||
Build-Depends: debhelper (>= 7), dkms, dh-systemd
|
||||
Standards-Version: 3.9.7
|
||||
Build-Depends: debhelper (>= 9), dkms, dh-systemd
|
||||
Standards-Version: 4.1.3
|
||||
Homepage: http://anbox.io
|
||||
Vcs-Browser: https://github.com/anbox/anbox
|
||||
Vcs-Git: https://github.com/anbox/anbox.git
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1048,8 +1048,10 @@ GL_APICALL void GL_APIENTRY glGetIntegerv(GLenum pname, GLint* params){
|
|||
if (ctx->glGetIntegerv(pname,params))
|
||||
{
|
||||
if (destroyCtx)
|
||||
{
|
||||
deleteGLESContext(ctx);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
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(),
|
||||
classname.c_str(),
|
||||
e->name().c_str()
|
||||
classname.c_str()
|
||||
);
|
||||
|
||||
varoffset += " + 4";
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ bool EntryPoint::parse(unsigned int lc, const std::string & str)
|
|||
std::string vartype, varname;
|
||||
if (!parseParameterDeclaration(field, &vartype, &varname, &error)) {
|
||||
fprintf(stderr,
|
||||
"line: %d: Parsing error in field <%s>\n",
|
||||
"line: %d: Parsing error in field <%s>, error: %s\n",
|
||||
lc,
|
||||
field.c_str(),
|
||||
error.c_str());
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ cleanup
|
|||
mkdir build || rm -rf build/*
|
||||
cd build
|
||||
cmake ..
|
||||
make -j10
|
||||
make test
|
||||
VERBOSE=1 make -j10
|
||||
VERBOSE=1 make test
|
||||
cd ..
|
||||
|
||||
cleanup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue