diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-13 16:36:16 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-13 16:44:06 +0100 |
| commit | a4b33f8e76b4ea528ed2746cadb8a3b000505606 (patch) | |
| tree | 2d387ad5246a688e3ba8105bc5d99157930b6c68 /src/Fl_Window_Driver.H | |
| parent | 54e75dc902cbe7878e35c2bc8f683745deb97db5 (diff) | |
Wayland: Fix "heap-buffer-overflow" error
- replace strchr() with memchr() because buffer is not nul-terminated
- fix '*(p+1)' potentially accessing memory out of bounds
This fix also prevents
- multiple memmove() calls
- multiple searches from the beginning of the string
Diffstat (limited to 'src/Fl_Window_Driver.H')
0 files changed, 0 insertions, 0 deletions
