Merge pull request #646 from LocutusOfBorg/fix-security-buffer-overflows

Fix security buffer overflows
This commit is contained in:
Simon Fels 2018-05-14 16:10:59 +02:00 • committed by GitHub
commit 77f3badb97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 10 deletions

View file

@ -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
View file

@ -1 +1 @@
7
9

4
debian/control vendored
View file

@ -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

View file

@ -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;

View file

@ -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";

View file

@ -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());

View file

@ -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