]> git.ipfire.org Git - thirdparty/suricata-verify.git/commit
iprep: test reputation & category file newline handling 1372/head
authorCole Dishington <Cole.Dishington@alliedtelesis.co.nz>
Mon, 31 Jul 2023 02:47:01 +0000 (14:47 +1200)
committerVictor Julien <victor@inliniac.net>
Mon, 4 Sep 2023 15:33:27 +0000 (17:33 +0200)
commitad11bc10856cccd978e4c00419a6b7e1417c1b9c
treece1cf399f8e2d0881af79c457109c7393d85cb48
parente338b7b95ce9e21c8068624418ae493d061a5aad
iprep: test reputation & category file newline handling

The commit
e7c0f0ad9 src: remove multiple uses of atoi
caused a regression in parsing of ip-rep reputation
config files.

Previously, due to the use of atoi() in parsing ip-rep values,
when the line was split by SRepSplitLine the \r at following the
reputation score was ignored.

Bug: #6243
tests/reputation-config/README.md [new file with mode: 0644]
tests/reputation-config/iprep-categories.txt [new file with mode: 0644]
tests/reputation-config/reputation-config-cr-lf/iprep-data.txt [new file with mode: 0644]
tests/reputation-config/reputation-config-cr-lf/test.yaml [new file with mode: 0644]
tests/reputation-config/reputation-config-cr/iprep-data.txt [new file with mode: 0644]
tests/reputation-config/reputation-config-cr/test.yaml [new file with mode: 0644]
tests/reputation-config/reputation-config-lf/iprep-data.txt [new file with mode: 0644]
tests/reputation-config/reputation-config-lf/test.yaml [new file with mode: 0644]
tests/reputation-config/test.py [new file with mode: 0644]
tests/reputation-config/test.rules [new file with mode: 0644]
tests/reputation-config/threshold.config [new file with mode: 0644]