[Commits] [SCM] claws branch, master, updated. 4.2.0-45-gdcafc3fad

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


The branch, master has been updated
       via  dcafc3fad2af216d0d125310eb9a4424f32f76a3 (commit)
      from  d44c5d96dc8415c5fa5888bf8490653b85aba1e8 (commit)

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


- Log -----------------------------------------------------------------
commit dcafc3fad2af216d0d125310eb9a4424f32f76a3
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 9865493ad..f960ac38e 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -3098,7 +3098,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