You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: 2.0.5 Reported for operating system, platform: Linux, ARM
Comments on the original bug report:
On 2017-01-05 22:55:52 +0000, Rob wrote:
Created attachment 2659
KDGKBTYPE type patch
When calling ioctl(fd, KDGKBTYPE, &type) in SDL_EVDEV_is_console(), we declare type as an 'int'. This should be a 'char'. The subsequent syscall, and kernel code, only writes the lower byte of the word.
ucval = KB_101;
ret = put_user(ucval, (char __user *)arg);
I've observed intermittent behavior related to this, and I can force an error condition by using an int initialized to 0xFFFFFFFF. The resulting ioctl will set type to 0XFFFFFF02, and the conditional return in SDL_EVDEV_is_console() will fail.
Recommend changing to char, or masking off unused bits.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 2.0.5
Reported for operating system, platform: Linux, ARM
Comments on the original bug report:
On 2017-01-05 22:55:52 +0000, Rob wrote:
On 2017-01-06 07:26:55 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: