This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch tymux-10-quiet-head
in repository terminology.
View the commit online.
commit bef64164dc9c89d59d6c92c4dbf648970e59984e
Author: Boris Faure <[email protected]>
AuthorDate: Thu Nov 5 16:35:39 2026 +0000
termptyesc: free the OSC 8 hyperlink string
_handle_hyperlink() never frees the decoded OSC 8 payload it
receives, not even on its early error paths: every hyperlink escape
leaked the string, until a memory limit killed the process.
These are the 82 crashes of the AFL campaign: leaks accumulating
across the persistent loop; all replay clean with the fix.
The pointer is freed in the caller, as OSC 0, 1, 2, 7 and 50 already
do with eina_unicode_unicode_to_utf8().
---
src/bin/termptyesc.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 0ff942c0..e7e6a813 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -5464,7 +5464,11 @@ _handle_esc_osc(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
if (!p || !*p)
goto err;
s = eina_unicode_unicode_to_utf8(p, &len);
- _handle_hyperlink(ty, s, len);
+ if (s)
+ {
+ _handle_hyperlink(ty, s, len);
+ free(s);
+ }
break;
case 10:
DBG("Set foreground color");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.