-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors when package version "0" or "9999" is passed #54
Comments
unfortunately this bug has additional impact, that is a subject of #55 |
rootcausein
assert run([{"name":"ethertypes","version":"0"}]) == '' this empty string then propagates here: vulner/crates/cpe-tag/src/searchers.rs Lines 19 to 20 in c138690
so that later every line in the best part is that it's expected behavior of and the same applies here: vulner/crates/cpe-tag/src/searchers.rs Line 44 in c138690
for https://docs.rs/regex/latest/regex/struct.Regex.html - I wonder if it's expected behavior: rust-lang/regex#896 |
fix(cpe-tag): errors when package version "0" or "9999" [#54]
affected commands
vulner scan
andvulner cpe
precondition
$ vulner sync
steps to reproduce
$ vulner cpe '[{"name":"ethertypes","version":"0"}]'
or
$ vulner cpe '[{"name":"ethertypes","version":"9999"}]'
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:The text was updated successfully, but these errors were encountered: