commit d9174ec: [Minor] Another strlcpy fix
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri May 28 10:07:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-05-28 11:04:32 +0100
URL: https://github.com/rspamd/rspamd/commit/d9174ecce4bf157d092bba37a8d87ba5725aa34f (HEAD -> master)
[Minor] Another strlcpy fix
---
src/libserver/html/html_url.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx
index 5c4fb8d56..a95daccf6 100644
--- a/src/libserver/html/html_url.cxx
+++ b/src/libserver/html/html_url.cxx
@@ -220,7 +220,7 @@ html_check_displayed_url(rspamd_mempool_t *pool,
url->visible_part = rspamd_mempool_alloc_buffer(pool, visible_part.size() + 1);
rspamd_strlcpy(url->visible_part,
visible_part.data(),
- visible_part.size());
+ visible_part.size() + 1);
dlen = visible_part.size();
/* Strip unicode spaces from the start and the end */
More information about the Commits
mailing list