A round of increasing robustness against buffer overruns.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21917 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
7408a69952
commit
00f605b930
11 changed files with 98 additions and 32 deletions
|
|
@ -205,7 +205,7 @@ void TParseContext::recover()
|
|||
void C_DECL TParseContext::error(TSourceLoc nLine, const char *szReason, const char *szToken,
|
||||
const char *szExtraInfoFormat, ...)
|
||||
{
|
||||
const int maxSize = 400;
|
||||
const int maxSize = GlslangMaxTokenLength + 200;
|
||||
char szExtraInfo[maxSize];
|
||||
va_list marker;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue