Closed mrl5 closed 2 years ago
unfortunately this bug has additional impact, that is a subject of #55
assert run([{"name":"ethertypes","version":"0"}]) == ''
this empty string then propagates here: https://github.com/mrl5/vulner/blob/c1386904a7d6002d223e0b7ee1c6980f5e1bf01e/crates/cpe-tag/src/searchers.rs#L19-L20
so that later every line in feed
is matched ...
the best part is that it's expected behavior of ripgrep
(according to this discussion: https://github.com/BurntSushi/ripgrep/discussions/2091)
and the same applies here: https://github.com/mrl5/vulner/blob/c1386904a7d6002d223e0b7ee1c6980f5e1bf01e/crates/cpe-tag/src/searchers.rs#L44
for https://docs.rs/regex/latest/regex/struct.Regex.html - I wonder if it's expected behavior: https://github.com/rust-lang/regex/discussions/896
affected commands
vulner scan
andvulner cpe
precondition
steps to reproduce
or
expected result
{}
is returnedactual result
stdout flooded with feed contents (feed that was downloaded in
precondidtion
step)additional info
with
vulner scan
it causesHTTP 400
errors flood: