Fix potential sscanf overflows in Shader.cpp

Issue=76 Contributed by ddefrostt git-svn-id: https://angleproject.googlecode.com/svn/trunk@500 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent db9cac07
......@@ -243,7 +243,7 @@ void Shader::parseVaryings()
char varyingType[256];
char varyingName[256];
int matches = sscanf(input, "static %s %s", varyingType, varyingName);
int matches = sscanf(input, "static %255s %255s", varyingType, varyingName);
if (matches != 2)
{
......@@ -473,7 +473,7 @@ void VertexShader::parseAttributes()
char attributeType[256];
char attributeName[256];
int matches = sscanf(input, "static %s _%s", attributeType, attributeName);
int matches = sscanf(input, "static %255s _%255s", attributeType, attributeName);
if (matches != 2)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment