diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-10-14 20:23:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-10-14 20:23:02 +0100 |
commit | 395c6641b2fc5751776b26baabec21ea8e83f375 (patch) | |
tree | c0c4ab21f528ab17afd2709ec6b2bfae2781b07f | |
parent | d4152285036ca9f304bb8d616858b07e01f23b1e (diff) | |
download | rspamd-395c6641b2fc5751776b26baabec21ea8e83f375.tar.gz rspamd-395c6641b2fc5751776b26baabec21ea8e83f375.zip |
[Fix] Use unsigned char for ragel machines
It seems that on aarch64 Linux char is signed by default, so Ragel produces
a wrong code that is "optimized" by a compiler simply to `false`.
Issue: #5172
-rw-r--r-- | src/ragel/smtp_base.rl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ragel/smtp_base.rl b/src/ragel/smtp_base.rl index eefc430d5..952c3a5c3 100644 --- a/src/ragel/smtp_base.rl +++ b/src/ragel/smtp_base.rl @@ -1,5 +1,6 @@ %%{ machine smtp_base; + alphtype unsigned char; # Base SMTP definitions # Dependencies: none |