cidr_split_address(): fix buffer overflow
commitfe1173c59d3e65918a7e6d0bdc7c4b034f2d190a
authorVitezslav Samel <vitezslav@samel.cz>
Fri, 15 Nov 2019 14:53:41 +0000 (15 15:53 +0100)
committerVitezslav Samel <vitezslav@samel.cz>
Fri, 15 Nov 2019 15:03:42 +0000 (15 16:03 +0100)
tree099fb45668de60e9433292c073629b7db6ca3f14
parent3457c63ce605c34e921a3ebc9b88d3b57e6ff8a9
cidr_split_address(): fix buffer overflow

make the address splitting in-place, so we don't need
any buffer (which can overflow) and any string copying

Signed-off-by: Vitezslav Samel <vitezslav@samel.cz>
src/cidr.c
src/cidr.h
src/ipfilter.c