Fix OOB memory write and ioctl check in LINUXjoystick

Reporter: impiaaa  |  Status: closed  |  Last Modified: June 22, 2019, 08:15:47 AM

Got a crash here when trying to run an example. I think it detected something in my laptop as a joystick with axes but no buttons, which doesn't work with the existing init loop.
codecov[bot]  
>Codecov Report

Merging #1732 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1732   +/-   ##
=======================================
  Coverage   24.77%   24.77%           
=======================================
  Files         166      166           
  Lines       16588    16588           
=======================================
  Hits         4109     4109           
  Misses      12479    12479
Impacted Files Coverage Δ
...NIGMAsystem/SHELL/Platforms/xlib/LINUXjoystick.cpp 12.19% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 148023a...8120c47. Read the comment docs.

Please sign in to post comments, or you can view this issue on GitHub.