libxkbcommon/test
Isaac Freund 68dddd4132 keysym: fix underflow in binary searches
This is hit when passing an empty string and XKB_KEYSYM_CASE_INSENSITIVE
to xkb_keysym_from_name currently if `(lo + hi) / 2` is 0 and `cmp < 0`,
causing mid to underflow and the the array access into name_to_keysym on
the next iteration of the loop to be out of bounds .

We *would* use ssize_t here as it is the appropriate type, but windows
unfortunately does not define it.
2021-04-25 12:25:58 +03:00
..
data keymap-dump: follow xkbcomp in printing affect=both in pointer actions 2020-11-23 20:03:17 +02:00
.gitignore test: add a tool to test-compile all LVO combinations from xkeyboard-config 2018-08-21 11:30:45 +10:00
atom.c test/atom: use correct format specifier for size_t 2019-12-28 14:13:52 +02:00
buffercomp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
common.c Add asprintf_safe helper function 2020-07-13 18:41:00 +10:00
compose.c Add asprintf_safe helper function 2020-07-13 18:41:00 +10:00
context.c Add asprintf_safe helper function 2020-07-13 18:41:00 +10:00
evdev-scancodes.h test: make most tests portable by copying linux/input.h locally 2014-09-06 11:29:15 +03:00
filecomp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
keymap.c xkbcomp: where a keysym cannot be resolved, set it to NoSymbol 2020-10-20 09:23:50 +10:00
keyseq.c build: include config.h manually 2019-12-27 13:09:11 +02:00
keysym.c keysym: fix underflow in binary searches 2021-04-25 12:25:58 +03:00
log.c Only add GCC diagnostic pragmas when compiler is GCC compatible 2019-12-27 15:20:25 +02:00
registry.c test: fix missing va_end in case of test failures 2021-03-19 23:44:30 +02:00
rules-file-includes.c build: include config.h manually 2019-12-27 13:09:11 +02:00
rules-file.c build: include config.h manually 2019-12-27 13:09:11 +02:00
rulescomp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
state.c test/data: sync from xkeyboard-config 2.30 2020-09-07 11:36:49 +03:00
stringcomp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
symbols-leak-test.py test: make the symbols-leak-test executable 2020-07-25 10:59:32 +03:00
test-keysym.py test: add a keysym tester 2021-02-22 13:43:16 +02:00
test.h test: drop some now-obsolete functions 2020-06-25 10:32:08 +10:00
tool-option-parsing.py test: allow skipping errors in certain conditions 2021-04-22 10:02:46 +10:00
utf8.c build: include config.h manually 2019-12-27 13:09:11 +02:00
utils.c utils: add streq_null() for streq that allows NULL values 2020-07-06 15:15:20 +10:00
x11.c build: include config.h manually 2019-12-27 13:09:11 +02:00
x11comp.c build: include config.h manually 2019-12-27 13:09:11 +02:00
xkeyboard-config-test.py.in test: add extra info to the layout-tester --help output 2021-04-20 10:30:17 +03:00