libei/src
Peter Hutterer 93ba922062 brei: fail on under/oversized message lengths
Add a 1MiB maximum and make sure our message length
is at least the header size - without that we get an underflow, causing
iobuf_pop to remove a huge number of bytes, crashing the other end.

Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/388>
2026-05-13 01:02:26 +00:00
..
brei-proto.h.tmpl brei: move the object_id_t typedefs to the brei-proto.h header 2023-05-18 14:03:26 +10:00
brei-shared.c brei: fail on under/oversized message lengths 2026-05-13 01:02:26 +00:00
brei-shared.h Fix varius typos across the codebase 2026-03-23 12:37:45 +10:00
ei-proto.c.tmpl log: remove trailing linebreaks from log messages 2023-05-29 17:54:20 +10:00
ei-proto.h.tmpl brei: move the object_id_t typedefs to the brei-proto.h header 2023-05-18 14:03:26 +10:00
libei-button.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-button.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-callback.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-callback.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-connection.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-connection.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-device.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libei-device.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libei-event.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libei-event.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libei-fd.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-handshake.c ei: fix formatting for the VERSION_UPDATE calls 2026-04-24 15:07:38 +10:00
libei-handshake.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-keyboard.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-keyboard.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-log.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-ping.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-pingpong.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-pingpong.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-pointer-absolute.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-pointer-absolute.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-pointer.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-pointer.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-private.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libei-region.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-region.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-scroll.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-scroll.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-seat.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libei-seat.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-socket.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-text.c Add a new text interface for sending keysyms and utf8 text 2026-04-02 05:09:37 +00:00
libei-text.h Add a new text interface for sending keysyms and utf8 text 2026-04-02 05:09:37 +00:00
libei-touchscreen.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei-touchscreen.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libei.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libei.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-button.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-button.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-callback.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-callback.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-client.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-client.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-connection.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-connection.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-device.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-device.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-event.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-event.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-fd.c eis: fix two file descriptor leaks on error 2026-05-13 01:02:25 +00:00
libeis-handshake.c eis: send missing ei_text interface version 2026-04-24 15:33:35 +10:00
libeis-handshake.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-keyboard.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-keyboard.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-log.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-ping.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-pingpong.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-pingpong.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-pointer-absolute.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-pointer-absolute.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-pointer.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-pointer.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-private.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-region.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-region.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-scroll.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-scroll.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-seat.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis-seat.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-socket.c eis: handle a lock file open failure correctly 2026-05-13 01:02:25 +00:00
libeis-text.c Add a new text interface for sending keysyms and utf8 text 2026-04-02 05:09:37 +00:00
libeis-text.h Add a new text interface for sending keysyms and utf8 text 2026-04-02 05:09:37 +00:00
libeis-touchscreen.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis-touchscreen.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
libeis.c Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
libeis.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
liboeffis.c oeffis: handle fcntl failures correctly 2026-05-13 01:02:25 +00:00
liboeffis.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
meson.build Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
util-bits.c util: add some mask helpers 2023-03-03 11:16:48 +10:00
util-bits.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-color.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-io.c util: close excessive file descriptors in iobuf_recv_from_fd 2026-05-13 01:02:25 +00:00
util-io.h util: fix possible fd leak if xconnect fails on connect() 2026-05-13 01:02:25 +00:00
util-list.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-list.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-logger.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-logger.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-macros.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-mem.h util: add a steal_fd() helper function 2026-05-13 01:02:24 +00:00
util-memfile.c util: handle failing memfd sealing 2026-05-13 01:02:25 +00:00
util-memfile.h util/memfile: include stddef for size_t 2024-07-29 14:48:34 +10:00
util-memmap.c util: return NULL in memmap_new() for a size 0 2026-05-13 01:02:24 +00:00
util-memmap.h util/memmap: add a helper wrapper around mmap 2024-07-29 14:48:34 +10:00
util-munit.c Fix varius typos across the codebase 2026-03-23 12:37:45 +10:00
util-munit.h Revert "Add support for swipe, pinch and hold gestures" 2026-04-23 14:19:29 +10:00
util-object.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-sources.c Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-sources.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-strings.c util: replace strcat memcpy in strv_join 2026-05-13 01:02:25 +00:00
util-strings.h util: fix xatou_base for values > UINT_MAX 2026-05-13 01:02:24 +00:00
util-structs.h Add SPDX identifiers to all source files 2022-03-03 00:27:36 +00:00
util-time.h util: add msleep() 2023-03-03 11:16:48 +10:00
util-tristate.h Format the code with clang-format 2026-03-12 13:55:19 +10:00
util-version.h Add a version macro for grepable version numbers 2022-09-07 09:20:27 +10:00