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

Fix parsing of version number from binary version string #939

Merged
merged 1 commit into from Dec 5, 2023

Conversation

mj138
Copy link
Contributor

@mj138 mj138 commented Dec 5, 2023

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix

  • What is the current behavior? (You can also link to an open issue here)
    For a binary version string like "openssl:openssl:1.0.1j", current code returns "openssl" for the version instead of "1.0.1j", causing false positives to be returned.

  • What is the new behavior (if this is a feature change)? If possible add a screenshot.
    Updated code returns the last field of the binary version string, which should be the correct version number.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    I don't believe so.

  • Other information:
    I did a quick test to verify this works for the openssl example mentioned above, but did not perform any further testing. Also not sure if a similar change might be necessary for BIN_NAME (should it always be the first field? or should it be the second to last field in the case where there are 3+ fields?).

@m-1-k-3 m-1-k-3 added bug Something isn't working EMBA labels Dec 5, 2023
Copy link
Member

@m-1-k-3 m-1-k-3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch ... I think we should do the same for BIN_NAME as we normally have something like the following:

bin_name:version

But in some cases we have an identifier like the following:

vendor:bin_name:version

Could you also implement this?

@m-1-k-3 m-1-k-3 merged commit a079506 into e-m-b-a:master Dec 5, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working EMBA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants