Skip to content
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

Unexpected non-match in version when build is present in constraint #7

Closed
bpfoster opened this issue Nov 4, 2024 · 0 comments · Fixed by #8
Closed

Unexpected non-match in version when build is present in constraint #7

bpfoster opened this issue Nov 4, 2024 · 0 comments · Fixed by #8

Comments

@bpfoster
Copy link
Contributor

bpfoster commented Nov 4, 2024

I am encountering this via trivy, but have traced the behavior to this library.

If I have version 11.2.0, and a vulnerability has a parsed version constraint of >= 11.2.0, < 11.2.2+security-01 (from this vuln), I would expect the constraint to match.

Instead, there is no match. It appears that the +security-01 is throwing things off, it is parsed into a 3rd constraint of 01 that never matches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant