[MPlayer-dev-eng] [PATCH] Fix key_down_event SEGFALT

spunit262 . spunit262 at gmail.com
Thu Apr 3 00:14:13 CEST 2014


I discovered by messing around that using key_down_event with a large
random value (ex SPACE | MP_NO_REPEAT_KEY) can cause a segfalt.
I found the problem to be that isprint is only defined for values in
the range of an unsigned char and the value EOF.
The patch adds a simple check before isprint in mp_input_get_key_name
to make sure the value is in isprint's range.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: key_down_even_segfalt
Type: application/octet-stream
Size: 356 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20140402/ebea98d0/attachment.obj>


More information about the MPlayer-dev-eng mailing list