First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 132607
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Matt Anderson <mda2376@rit.edu>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
joystick-20050720-fix-segfault-on-undefined-axis-buttins.patch patch to fix segfault patch Matt Anderson 2006-05-07 11:53 0000 1.47 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 132607 depends on: Show dependency tree
Bug 132607 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-05-07 11:50 0000
The jstest utility will segfault when attempting to retrieve joystick button
mappings from the js interface when they have not been previously defined,
which is probably the case for just about anyone calling jstest. This is due to
not checking the result of two ioctl calls and using the result to index into a
char *[] array of button/axis names.

------- Comment #1 From Matt Anderson 2006-05-07 11:53:22 0000 -------
Created an attachment (id=86386) [edit]
patch to fix segfault

my proposed patch to fix this segfault. I can also confirm this works well on
x86_64 (~amd64)

------- Comment #2 From Ken Werner 2006-07-23 02:36:53 0000 -------
the patch works fine here my on x86 box. :)

------- Comment #3 From SpanKY 2006-07-30 21:51:34 0000 -------
thanks, patch added to joystick-20060731

First Last Prev Next    No search results available      Search page      Enter new bug