summaryrefslogtreecommitdiffstats
path: root/src/glx/renderpix.c
diff options
context:
space:
mode:
authorStefan Dirsch <[email protected]>2016-07-14 15:21:20 +0200
committerEmil Velikov <[email protected]>2016-07-20 16:05:17 +0100
commit27ef7bfd6cd2d960844f4c79d6dddc0bda0b20b0 (patch)
tree64c8b92d5f5344fd3fbdeb8812e5959d8bddc490 /src/glx/renderpix.c
parent9e1248d0752e692714b58ef1f2211ec7e172c8cf (diff)
Avoid overflow in 'last' variable of FindGLXFunction(...)
This 'last' variable used in FindGLXFunction(...) may become negative, but has been defined as unsigned int resulting in an overflow, finally resulting in a segfault when accessing _glXDispatchTableStrings[...]. Fixed this by definining it as signed int. 'first' variable also needs to be defined as signed int. Otherwise condition for while loop fails due to C implicitly converting signed to unsigned values before comparison. Cc: <[email protected]> Signed-off-by: Stefan Dirsch <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx/renderpix.c')
0 files changed, 0 insertions, 0 deletions