From: Vsevolod Stakhov Date: Mon, 14 Oct 2024 19:23:02 +0000 (+0100) Subject: [Fix] Use unsigned char for ragel machines X-Git-Tag: 3.10.1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=395c6641b2fc5751776b26baabec21ea8e83f375;p=rspamd.git [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 --- 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