From c554a45738712219c066897b09a44d99afeb4240 Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Sun, 26 Mar 2023 23:36:41 +0200 Subject: [PATCH] fix stale special collector use after free reported by ednash and investigated by @dwfreed --- src/fe-text/textbuffer-formats.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/fe-text/textbuffer-formats.c b/src/fe-text/textbuffer-formats.c index 1de8c120..bbf9f229 100644 --- a/src/fe-text/textbuffer-formats.c +++ b/src/fe-text/textbuffer-formats.c @@ -214,7 +214,6 @@ static void sig_print_noformat(TEXT_DEST_REC *dest, const char *text) if (!scrollback_format) return; - special_push_collector(NULL); info = store_lineinfo_tmp(dest); info->format = format_rec_new(NULL, NULL, 2, (const char *[]){ NULL, text });