From d77e013060a1776098a5415d2a3f82260a5e268a Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Fri, 21 Jun 2019 11:50:34 +0100 Subject: [PATCH] wmail: fixed use-after-free. The CleanupNames() function removed the sender-addresses for deleted mails, but did not set the namesChanged flag to true. This meant that if the ticker was displaying the address of a mail which had been deleted it would continue doing so after the address had been freed. --- wmail/src/wmail.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wmail/src/wmail.c b/wmail/src/wmail.c index 0d1df25..839aff4 100644 --- a/wmail/src/wmail.c +++ b/wmail/src/wmail.c @@ -1730,6 +1730,8 @@ static void CleanupNames( void ) free( name->name ); free( name ); + + namesChanged = true; } else { -- 2.11.4.GIT