Skip to content
Snippets Groups Projects
Commit 7e7630bb authored by Robert Morell's avatar Robert Morell Committed by Alan Coopersmith
Browse files

glx: Fix mask truncation in __glXGetAnswerBuffer [CVE-2014-8093 6/6]


On a system where sizeof(unsigned) != sizeof(intptr_t), the unary
bitwise not operation will result in a mask that clears all high bits
from temp_buf in the expression:
        temp_buf = (temp_buf + mask) & ~mask;

Signed-off-by: default avatarRobert Morell <rmorell@nvidia.com>
Reviewed-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent e883c170
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment