]> git.ipfire.org Git - thirdparty/nftables.git/commit
libnftables: fix crash when freeing non-malloc'd address
authorFlorian Westphal <fw@strlen.de>
Wed, 10 Jul 2024 13:25:58 +0000 (15:25 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 10 Jul 2024 14:41:25 +0000 (16:41 +0200)
commitafa77c18f65ebed1036fb8c8cfd15e8a8faa0254
treedad92502696f7603eec9a139ff3b2a5dadc479a8
parentac77f3805c71f14c51730a9c5cb726ee67f14159
libnftables: fix crash when freeing non-malloc'd address

dirname may return static pointer:
munmap_chunk(): invalid pointer
20508 Aborted  nft -f test

Fixes: 6ef04f99382c ("libnftables: search for default include path last")
Signed-off-by: Florian Westphal <fw@strlen.de>
src/libnftables.c