Skip to content

tools: debug-events: don't overrun the device array with too many arguments

Peter Hutterer requested to merge whot/libinput:wip/coverity-fixes into master

Only the --device option was checked for argument count, not the rest so it's easy to overrun the array by specifying too many devices.

Except: this was a theoretical bug only, more than 64 arguments trigger an assertion in the argv processing in tools/shared.c anyway. Let's drop the debug-events limit to 60 devices so we can at least have a test for this.

Found by coverity

Signed-off-by: Peter Hutterer peter.hutterer@who-t.net

Merge request reports