diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2026-06-23 15:20:45 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-06-23 15:30:54 +0000 |
| commit | ebaa878dcee487cb70483a25fad0a03eeccac2aa (patch) | |
| tree | 8f21b9b6db8c363a8a1657165b63cc34d926c17a /CHANGELOG.md | |
| parent | main/client: add --class, an alias for --app-id (diff) | |
notify: fix crash in notify_done() when terminal has been closed before notification
In server mode, if a terminal instance triggered a tracked
notification (e.g. a bell notification, or a kitty notification), then
the foot server crashed if the terminal instance was closed before the
notification.
This happened because the notify_done() callback's user supplied
argument was the terminal instance, and this pointer was not verified
before it was de-referenced.
Fix by searching the wayland global's list of terminal instances, and
ignore the callback if the wanted terminal instance is gone.
Closes #2397
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 64b1ac07..c611f5ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -114,6 +114,9 @@ ([#2364][2364]). * Escape quotes in file names being DnD:ed on the command line ([#2363][2363]). +* Crash in `--server` mode, when a tracked notification is closed + after the associated terminal instance has been closed + ([#2397][2397]). [2353]: https://codeberg.org/dnkl/foot/issues/2353 [2352]: https://codeberg.org/dnkl/foot/issues/2352 @@ -122,6 +125,7 @@ [2360]: https://codeberg.org/dnkl/foot/issues/2360 [2370]: https://codeberg.org/dnkl/foot/issues/2370 [2364]: https://codeberg.org/dnkl/foot/issues/2364 +[2397]: https://codeberg.org/dnkl/foot/issues/2397 ### Security |
