Skip to content
Snippets Groups Projects
Commit b4031fc0 authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

XCreatePixmap: trigger BadValue error for out-of-range dimensions


The CreatePixmap request specifies height & width of the image as CARD16
(unsigned 16-bit integer), so if either is larger than that, set it to 0
so the X server returns a BadValue error as the protocol requires.

Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent 73a37d5f
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