]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: pools: Fix the usage of mmap()) with DEBUG_UAF.
authorOlivier Houchard <cognet@ci0.org>
Sat, 20 Oct 2018 23:33:11 +0000 (01:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Oct 2018 03:43:33 +0000 (05:43 +0200)
commit62975a7740cba4bdaf1c096dd246feba854d2410
tree07b48ce8c0b67ac419b2641e7e54c6d0cdccf251
parent4e7cc3381b27e3971b02b73a113ecc13916e1f20
BUG/MEDIUM: pools: Fix the usage of mmap()) with DEBUG_UAF.

When mapping memory with mmap(), we should use a fd of -1, not 0. 0 may
work on linux, but it doesn't work on FreeBSD, and probably other OSes.

It would be nice to backport this to 1.8 to help debugging there.
include/common/memory.h