[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-44-ga2ab42fbd

mones at claws-mail.org mones at claws-mail.org
Sat Feb 10 19:03:45 UTC 2024


The branch, gtk2 has been updated
       via  a2ab42fbd429c2026a160ffa22f2196e1c448ec2 (commit)
      from  20ea7dfc4ab403142bf316e0e61c25a6997acdf4 (commit)

Summary of changes:
 src/mainwindow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit a2ab42fbd429c2026a160ffa22f2196e1c448ec2
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat Feb 10 20:02:32 2024 +0100

    Fix CID 1491137 'Out-of-bounds access (OVERRUN)'

diff --git a/src/mainwindow.c b/src/mainwindow.c
index e0024dbe0..80a86b826 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -3135,7 +3135,7 @@ SensitiveCondMask main_window_get_mask(SensitiveCond cond, ...)
 	value = 0;
 
 	va_start(args, cond); 
-	for (i = (gint) cond; i >= 0; i = va_arg(args, gint))
+	for (i = (gint) cond; i >= 0 && i < M_MAX_RESERVED; i = va_arg(args, gint))
 		value |= SensitiveCond_table[i];
 	va_end(args);
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list