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: panic if JSON relationship array contains null #239

Merged
merged 1 commit into from May 20, 2024

Conversation

kzantow
Copy link
Collaborator

@kzantow kzantow commented May 8, 2024

This PR fixes a panic when invalid JSON containing null in a relationship array is parsed.

TODO:

  • add tests

Fixes: #238

Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow force-pushed the fix/null-relationship-panic branch from 5ed5bfa to 24bd829 Compare May 20, 2024 20:35
@kzantow kzantow marked this pull request as ready for review May 20, 2024 20:35
@kzantow kzantow merged commit 57d4b8e into spdx:main May 20, 2024
6 checks passed
@kzantow kzantow deleted the fix/null-relationship-panic branch May 20, 2024 23:38
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.

Nil ptr deref panic when parsing JSON SBOM with a null relationships value
2 participants