[Plib-devel] patch for src/js/jsMacOSX.cxx that fixes segfault on fgjs.
Brought to you by:
sjbaker
From: Tatsuhiro N. <tat...@gm...> - 2009-08-28 17:27:54
|
Hi, I found a bug in jsMacOSX. fgjs, a joystick utility that comes with FlightGear, crashes on Mac OS X in jsJoyStick.rawRead(). The cause is that fgjs calls jsJoystick.rawRead() with buttons = NULL, but there's no NULL check for buttons in the method. Attached is a patch for fixing this issue. As long as I've tested on my end, it works fine. Best, Tat |