]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: anon: memory illegal accesses in tools.c with hash_anon and hash_ipanon
authorErwan Le Goas <elegoas@haproxy.com>
Wed, 21 Sep 2022 14:24:23 +0000 (16:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 22 Sep 2022 13:44:13 +0000 (15:44 +0200)
commitd2605cf0e5bf9fcbfd7b0d672d457f8754f7da89
treed7c9883af7c0cdf4448939e07524301b04e2d88c
parentae6b56800f907f1f5f349dfdb0bf153cf782b230
BUG/MINOR: anon: memory illegal accesses in tools.c with hash_anon and hash_ipanon

chipitsine reported in github issue #1872 that in function hash_anon and
hash_ipanon, index_hash can be equal to NB_L_HASH_WORD and can reach an
inexisting line table, the table is initialized hash_word[NB_L_HASH_WORD][20];
so hash_word[NB_L_HASH_WORD] doesn't exist.

No backport needed, except if anonymization mechanism is backported.
src/tools.c