Bug 89300

Summary: xf86-input-libinput stack smashing detected
Product: xorg Reporter: regwz <regwz>
Component: Input/libinputAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: peter.hutterer
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xf86-input-libinput compiled with AddressSanitizer none

Description regwz 2015-02-24 15:10:32 UTC
Created attachment 113795 [details]
xf86-input-libinput compiled with AddressSanitizer

Arch Linux
xf86-input-libinput 0.7.0
xorg-server 1.17.1-3

Xorg crashes during startup with xf86-input-libinput installed (stack smashing protection is enabled with -fstack-protector-strong)

I recompiled the driver with AddressSanitizer enabled and was able to find the cause of the crash which seems to be an off-by-one error on line 375 of libinput.c.
Comment 1 Peter Hutterer 2015-02-24 21:52:54 UTC
Thanks, made it easy with this backtrace :)


commit 2600a4a352185f7d4d828f7d223628e4bb0f2aa3
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Wed Feb 25 07:48:18 2015 +1000

    Fix off-by-one error in buttonmap initialization (#89300)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.