summaryrefslogtreecommitdiff
path: root/src/Xrender.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2016-09-25 21:42:09 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2016-09-25 22:14:27 +0200
commit8fad00b0b647ee662ce4737ca15be033b7a21714 (patch)
treedefc41b75d44d03839779cd43a72288efc3ee004 /src/Xrender.c
parentb2df5bc42f64b45e44dbad61f3386bcb5ec1383d (diff)
Avoid OOB write in XRenderQueryFilters
The memory for filter names is reserved right after receiving the reply. After that, filters are iterated and each individual filter name is stored in that reserved memory. The individual name lengths are not checked for validity, which means that a malicious server can reserve less memory than it will write to during each iteration. v2: consume remaining bytes in reply buffer on error. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
Diffstat (limited to 'src/Xrender.c')
0 files changed, 0 insertions, 0 deletions