diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 17:13:49 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 17:13:49 +0300 |
| commit | 6603122bdeb49ddc1564e3c3bd584b4ad57e3845 (patch) | |
| tree | a09aea4ca8f21c14467dbf42d0b69af1ef49ccb5 /src/platform/wayland/protocols/xdg-toplevel-drag-v1-protocol.c | |
| parent | 043781575d90d84eb336ed32749e0ab8588a684c (diff) | |
Copy IME text without a bounded strndup
With LTO, GCC inlines the IME handlers into the test that passes a
32-byte buffer and warns that strndup's 256 KiB bound exceeds it
(-Wstringop-overread). The read never passed the NUL, since libwayland
always terminates protocol strings, but the warning reached consumers
such as wsap_term.
The text is now measured with strlen, capped at IME_TEXT_MAX, and copied,
which keeps the same truncation. An LTO release build is warning-free.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/platform/wayland/protocols/xdg-toplevel-drag-v1-protocol.c')
0 files changed, 0 insertions, 0 deletions
