diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-02-09 21:28:05 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-12-08 18:09:49 -0800 |
commit | 2df83bb122debc3c20cfc3d3b0edc85cd0270f79 (patch) | |
tree | 3665afa3fe803bbc8ea4aab5b08d6b52f26b5b1e /test/xi2/protocol-xigetclientpointer.c | |
parent | d153a85f7478a7a67ccb02fbca6390b0ab1732ee (diff) |
Add request length checking test cases for some Xinput 2.x requests
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/xi2/protocol-xigetclientpointer.c')
-rw-r--r-- | test/xi2/protocol-xigetclientpointer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/xi2/protocol-xigetclientpointer.c b/test/xi2/protocol-xigetclientpointer.c index 28eb8d32a..570c53e06 100644 --- a/test/xi2/protocol-xigetclientpointer.c +++ b/test/xi2/protocol-xigetclientpointer.c @@ -124,6 +124,11 @@ test_XIGetClientPointer(void) request.win = INVALID_WINDOW_ID; request_XIGetClientPointer(&client_request, &request, BadWindow); + printf("Testing invalid length\n"); + client_request.req_len -= 4; + request_XIGetClientPointer(&client_request, &request, BadLength); + client_request.req_len += 4; + test_data.cp_is_set = FALSE; printf("Testing window None, unset ClientPointer.\n"); |