diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-12 18:35:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-12 18:35:59 +0100 |
commit | 80cb19900c3ab36faf92060ea639bccdcda5eaa9 (patch) | |
tree | 8158c05411a9ff538535ee50b47454214a644170 /contrib/aho-corasick | |
parent | 74b182e0166abe108a374495079c2e23cdaceac6 (diff) | |
download | rspamd-80cb19900c3ab36faf92060ea639bccdcda5eaa9.tar.gz rspamd-80cb19900c3ab36faf92060ea639bccdcda5eaa9.zip |
[Minor] Fix some ubsan related issues
Diffstat (limited to 'contrib/aho-corasick')
-rw-r--r-- | contrib/aho-corasick/acism_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/aho-corasick/acism_create.c b/contrib/aho-corasick/acism_create.c index 6b842cf3b..2d4439ffe 100644 --- a/contrib/aho-corasick/acism_create.c +++ b/contrib/aho-corasick/acism_create.c @@ -158,7 +158,7 @@ fill_symv(ACISM *psp, MEMREF const *strv, int nstrs) #if ACISM_SIZE < 8 psp->sym_bits = bitwid(psp->nsyms); - psp->sym_mask = ~(-1 << psp->sym_bits); + psp->sym_mask = ~((~0u) << psp->sym_bits); #endif } |