mirror of https://github.com/mpv-player/mpv
318559056f
getch2.c read data into a "char" array, and returned values other than
escape sequences directly from there. This meant that it could return
negative values (except on platforms where "char" is unsigned) if the
input contained bytes >= 128. This would break later parsing in
input.c as the values would be interpreted as having the MP_KEY_DOWN
flag set, which would make the key binding code think a key is held
down (and never released). Fix by changing the buffer type to unsigned
char.
The bug itself was very old, but started triggering visible breakage
more easily after commit
|
||
---|---|---|
.. | ||
getch2-os2.c | ||
getch2-win.c | ||
getch2.c | ||
getch2.h | ||
gettimeofday.c | ||
glob-win.c | ||
glob.h | ||
macosx_finder_args.c | ||
macosx_finder_args.h | ||
mmap-os2.c | ||
mmap.h | ||
mmap_anon.c | ||
mmap_anon.h | ||
mplayer.exe.manifest | ||
mplayer.rc | ||
numcores.c | ||
numcores.h | ||
osdep.h | ||
priority.c | ||
priority.h | ||
setenv.c | ||
shmem.c | ||
shmem.h | ||
strsep.c | ||
strsep.h | ||
swab.c | ||
timer-darwin.c | ||
timer-linux.c | ||
timer-win2.c | ||
timer.h | ||
vsscanf.c |