Commit e3f47be9 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

xfree86: fix use-after-free issue in checkInput



*dev is the condition of the while loop we're in, reset to NULL after
freeing
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
parent 252a69b5
......@@ -2329,6 +2329,7 @@ checkInput(serverLayoutPtr layout, Bool implicit_layout)
current = dev;
free(*dev);
*dev = NULL;
do {
*current = *(current + 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment