diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-07-21 13:32:51 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-07-21 13:32:51 +0100 |
commit | 11b6bfa7620f31b9c2bc2e537b66233daf5e192f (patch) | |
tree | 530b51a644434f432a00884e64884897b11aa4aa /wrappers | |
parent | a245de65fd1d31905fd792062e04c3904c8b8ec0 (diff) |
gltrace: Prevent buffer overflow when tracing glGetIntegerv(GL_PROGRAM_BINARY_FORMATS).
Diffstat (limited to 'wrappers')
-rw-r--r-- | wrappers/gltrace.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wrappers/gltrace.py b/wrappers/gltrace.py index 1fbb1e3b..5c7d22b8 100644 --- a/wrappers/gltrace.py +++ b/wrappers/gltrace.py @@ -254,6 +254,8 @@ class GlTracer(Tracer): print '_gl_param_size(GLenum pname) {' print ' switch (pname) {' for function, type, count, name in glparams.parameters: + if name == 'GL_PROGRAM_BINARY_FORMATS': + count = 0 if type is not None: print ' case %s: return %s;' % (name, count) print ' default:' |