[Commits] [SCM] claws branch, master, updated. 4.3.1-44-gdcca2b1a6
wwp at claws-mail.org
wwp at claws-mail.org
Thu Mar 13 16:26:06 UTC 2025
The branch, master has been updated
via dcca2b1a6eab37639b39b6f53bce0c795181ea3f (commit)
from c034ce1095039fcf204a804e31d67384229c992e (commit)
Summary of changes:
src/plugins/notification/notification_core.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit dcca2b1a6eab37639b39b6f53bce0c795181ea3f
Author: wwp <subscript at free.fr>
Date: Thu Mar 13 17:25:51 2025 +0100
Fix CID 1220388: Out-of-bounds write (OVERRUN).
diff --git a/src/plugins/notification/notification_core.c b/src/plugins/notification/notification_core.c
index 5e28d0e35..2538fb73c 100644
--- a/src/plugins/notification/notification_core.c
+++ b/src/plugins/notification/notification_core.c
@@ -662,22 +662,22 @@ gchar* notification_libnotify_sanitize_str(gchar *in)
out = 0;
while(*in) {
if(*in == '<') {
- if(out+4 > STR_MAX_LEN) break;
+ if(out+4 >= STR_MAX_LEN) break;
memcpy(&(tmp_str[out]),"<",4);
in++; out += 4;
}
else if(*in == '>') {
- if(out+4 > STR_MAX_LEN) break;
+ if(out+4 >= STR_MAX_LEN) break;
memcpy(&(tmp_str[out]),">",4);
in++; out += 4;
}
else if(*in == '&') {
- if(out+5 > STR_MAX_LEN) break;
+ if(out+5 >= STR_MAX_LEN) break;
memcpy(&(tmp_str[out]),"&",5);
in++; out += 5;
}
else {
- if(out+1 > STR_MAX_LEN) break;
+ if(out+1 >= STR_MAX_LEN) break;
tmp_str[out++] = *in++;
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list