diff options
author | Markus Armbruster <armbru@redhat.com> | 2025-07-23 15:15:04 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2025-09-01 12:51:37 +0200 |
commit | a12ff7f807e3ae2e254ac1de45c3892831479a0f (patch) | |
tree | ec7a11ee2aa2fcfde340e86b330c276e8424d2eb /python | |
parent | 91589bcd9fee0e66b241d04e5f37cd4f218187a2 (diff) | |
download | qemu-a12ff7f807e3ae2e254ac1de45c3892831479a0f.zip qemu-a12ff7f807e3ae2e254ac1de45c3892831479a0f.tar.gz qemu-a12ff7f807e3ae2e254ac1de45c3892831479a0f.tar.bz2 |
ui/keymaps: Avoid trace crash and improve error messages
parse_keyboard_layout() passes a possibly null @filename to
trace_keymap_parse(). Trace backend log then formats it with %s,
which crashes on some systems.
Fix by moving the null check before the trace_keymap_parse().
While there, improve the error messages a bit.
Fixes: d3b787fa7dde (keymaps: add tracing)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20250723131504.1482657-1-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions