mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 12:10:28 +01:00
Fix libinput_device_group_find_group() to return NULL on failure
struct list isn't a null-terminated list, list_for_each() causes 'g' to be set to the list head at the end of the loop. Returning that as group caused random memory to be overwritten. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
38f20850e1
commit
9949d4ee08
1 changed files with 1 additions and 1 deletions
|
|
@ -2011,7 +2011,7 @@ libinput_device_group_find_group(struct libinput *libinput,
|
|||
}
|
||||
}
|
||||
|
||||
return g;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue