Consolidate all token length limits (1024), including one bad one (80) hardcoded on the stack (issue #40, issue #41).
This commit is contained in:
parent
1070e629a9
commit
f330f08129
9 changed files with 74 additions and 23 deletions
|
|
@ -347,7 +347,7 @@ void TParseContext::outputMessage(TSourceLoc loc, const char* szReason,
|
|||
const char* szExtraInfoFormat,
|
||||
TPrefixType prefix, va_list args)
|
||||
{
|
||||
const int maxSize = GlslangMaxTokenLength + 200;
|
||||
const int maxSize = MaxTokenLength + 200;
|
||||
char szExtraInfo[maxSize];
|
||||
|
||||
safe_vsprintf(szExtraInfo, maxSize, szExtraInfoFormat, args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue