Summary: | ck-get-x11-display-device crashes on startup | ||
---|---|---|---|
Product: | ConsoleKit | Reporter: | Ray Strode <halfline> |
Component: | Daemon | Assignee: | william.jon.mccann |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | kmaraas |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Ray Strode
2009-07-21 13:41:15 UTC
There is only one place in the code that does strncpy: load_drivers (void) ... strncpy (tmn->name, p, len); name is a fixed size 16 byte buffer, p is path pulled from /proc/tty/drivers. Kjartan's /proc/tty/drivers is: [kmaraas@nc6400 ~]$ cat /proc/tty/drivers /dev/tty /dev/tty 5 0 system:/dev/tty /dev/console /dev/console 5 1 system:console /dev/ptmx /dev/ptmx 5 2 system /dev/vc/0 /dev/vc/0 4 0 system:vtmaster serial /dev/ttyS 4 64-95 serial pty_slave /dev/pts 136 0-1048575 pty:slave pty_master /dev/ptm 128 0-1048575 pty:master unknown /dev/tty 4 1-63 console Which is the same as mine, so it's not immediately clear to me why it would be triggering an overflow from him and not for me. Also, not of the filenames in the second column are more than 16 bytes. This was actually a transient gcc bug. See: http://gcc.gnu.org/ml/gcc-patches/2009-06/msg01130.html and https://bugzilla.redhat.com/show_bug.cgi?id=506099 |
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.