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 runtime panic on LoadLicenses() #44

Merged
merged 1 commit into from
Jul 12, 2022
Merged

Conversation

saschagrunert
Copy link
Contributor

@saschagrunert saschagrunert commented Jun 24, 2022

It may be possible that the amount of segments is lower than 3 which caused a runtime panic in the license loader. We now skip those paths to fix that issue.

Found: https://github.com/cri-o/cri-o/runs/7037925519

It may be possible that the amount of segments is lower than 3 which
caused a runtime panic in the license loader. We now skip those paths to
fix that issue.

Found: https://github.com/cri-o/cri-o/runs/7037925519

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/bom that referenced this pull request Jun 27, 2022
This reverts commit c1f1fa3 because of
a runtime panic possibly fixed in
google/licenseclassifier#44.

Fixes to kubernetes-sigs#127

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/bom that referenced this pull request Jun 27, 2022
This reverts commit c1f1fa3 because of
a runtime panic possibly fixed in
google/licenseclassifier#44.

Fixes kubernetes-sigs#127

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@rspier rspier requested a review from wcn3 July 1, 2022 00:19
@wcn3
Copy link
Collaborator

wcn3 commented Jul 12, 2022

This looks fine. As a rule, the distribution of files provided here won't include extra files that could trigger this issue, but I can see how it would be useful when loading files from other sources. Thanks!

@wcn3 wcn3 merged commit c913e30 into google:main Jul 12, 2022
@saschagrunert saschagrunert deleted the panic branch July 13, 2022 07:07
@saschagrunert
Copy link
Contributor Author

@wcn3 do you think we can create a new tag after this has been resolved?

@wcn3
Copy link
Collaborator

wcn3 commented Jul 22, 2022

Just created v2.0.0-pre6

@saschagrunert
Copy link
Contributor Author

Thank you so much @wcn3!

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 this pull request may close these issues.

None yet

2 participants