projects
/
platform
/
core
/
uifw
/
coregl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace vulnerable function 'sprintf' to 'snprintf'
[platform/core/uifw/coregl.git]
/
src
/
modules
/
fastpath
/
coregl_fastpath_gl.c
diff --git
a/src/modules/fastpath/coregl_fastpath_gl.c
b/src/modules/fastpath/coregl_fastpath_gl.c
index
9044bf5
..
03c8cf3
100644
(file)
--- a/
src/modules/fastpath/coregl_fastpath_gl.c
+++ b/
src/modules/fastpath/coregl_fastpath_gl.c
@@
-5103,7
+5103,7
@@
fastpath_glGetStringi(GLenum name, GLuint index)
goto finish;
case GL_EXTENSIONS:
_valid_extension_string();
- if (index
< 0 || index
>= gl_extension_count) {
+ if (index >= gl_extension_count) {
_set_gl_error(GL_INVALID_VALUE);
goto finish;
}