diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-02-06 12:56:42 -0800 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-02-27 12:58:46 -0800 |
commit | fcd1d01b80600577e015c34dbd7b30a998d50560 (patch) | |
tree | 4bf6daf1929075e8a6fd770e7c3885c8113721d2 /framework/core.py | |
parent | 032acbd727f33232a16cc18fdd22dbf0c0e80ae3 (diff) |
glslparsertest: Avoid uninitialized vars in parse_glsl_version_number.
Previously, if the user specified an ill-formed GLSL version number
(or the implementation supplied an ill-formed number in its response
to glGetString(GL_SHADING_LANGUAGE_VERSION)), glslparsertest would
access uninitialized variables, resulting in unpredictable (and often
confusing) behaviour.
With this patch, glslparser test accepts version numbers either of the
form "<int>" or "<int>.<int>". Ill-formed version numbers lead to a
test failure.
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Tom Gall <tom.gall@linaro.org>
v2: Add comment explaining the use of sscanf(...) == 0.
Diffstat (limited to 'framework/core.py')
0 files changed, 0 insertions, 0 deletions