diff options
author | Frank Binns <[email protected]> | 2015-08-12 16:35:59 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-08-13 17:36:06 +0100 |
commit | 21b2c6fd5ea5ec2a810945c3c61b14d93a53991d (patch) | |
tree | 1ebb7ce1a1a8410d7cd29e0b3fbf2c5db7370c66 /src/egl/SConscript | |
parent | 9a4eae61c24858d69d731d63b141d2acaed40d69 (diff) |
egl: don't allow eglGetConfigs to set num_configs param to a negative value
When a buffer is provided to eglGetConfigs it's supposed to set the value
of the num_config parameter to the total number of configs that have been
copied into this buffer. For some reason the EGL spec doesn't consider it
to be an error to pass this function a buffer while specifying its size to
be less than 0. Given this, one would expect this combination to result in
the num_config parameter being set to 0 but this wasn't the case. This was
due to the buffer size being copied straight into num_configs without being
clamped to 0.
This was causing the following dEQP EGL test to fail:
dEQP-EGL.functional.query_config.get_configs.get_configs_bounds
Signed-off-by: Frank Binns <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/SConscript')
0 files changed, 0 insertions, 0 deletions