Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
7ea933f5
Commit
7ea933f5
authored
Dec 12, 2010
by
daniel@transgaming.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Shader.cpp
src/libGLESv2/Shader.cpp
+2
-2
No files found.
src/libGLESv2/Shader.cpp
View file @
7ea933f5
...
@@ -243,7 +243,7 @@ void Shader::parseVaryings()
...
@@ -243,7 +243,7 @@ void Shader::parseVaryings()
char
varyingType
[
256
];
char
varyingType
[
256
];
char
varyingName
[
256
];
char
varyingName
[
256
];
int
matches
=
sscanf
(
input
,
"static %
s %
s"
,
varyingType
,
varyingName
);
int
matches
=
sscanf
(
input
,
"static %
255s %255
s"
,
varyingType
,
varyingName
);
if
(
matches
!=
2
)
if
(
matches
!=
2
)
{
{
...
@@ -473,7 +473,7 @@ void VertexShader::parseAttributes()
...
@@ -473,7 +473,7 @@ void VertexShader::parseAttributes()
char
attributeType
[
256
];
char
attributeType
[
256
];
char
attributeName
[
256
];
char
attributeName
[
256
];
int
matches
=
sscanf
(
input
,
"static %
s _%
s"
,
attributeType
,
attributeName
);
int
matches
=
sscanf
(
input
,
"static %
255s _%255
s"
,
attributeType
,
attributeName
);
if
(
matches
!=
2
)
if
(
matches
!=
2
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment