commit 2910ed5: [Minor] Use unsigned char for ascii checks

Vsevolod Stakhov vsevolod at rspamd.com
Thu Jan 5 15:35:03 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-01-05 10:12:13 +0000
URL: https://github.com/rspamd/rspamd/commit/2910ed59c0d55ec9cb9d9f973bfc65baed5c5a62 (HEAD -> master)

[Minor] Use unsigned char for ascii checks

---
 src/plugins/chartable.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/chartable.cxx b/src/plugins/chartable.cxx
index 6e3fd9b10..a78e7a1a5 100644
--- a/src/plugins/chartable.cxx
+++ b/src/plugins/chartable.cxx
@@ -494,7 +494,7 @@ rspamd_chartable_process_word_ascii(struct rspamd_task *task,
 		got_unknown,
 	} state = start_process;
 
-	const auto *p = w->normalized.begin;
+	const auto *p = (const unsigned char *)w->normalized.begin;
 	const auto *end = p + w->normalized.len;
 	last_sc = non_ascii;
 


More information about the Commits mailing list