You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to parse spdx-null-rel.json - a JSON SBOM containing a null value in the relationships array, then I get a panic. I am using tools-golang v0.5.4.
The text was updated successfully, but these errors were encountered:
Hi @nchelluri I would just note that this does not look like it's a valid SPDX document -- instead of the required object, it has a null value for a relationship entry (rather than a nullrelationships array):
"relationships": [
null
],
That said, the library shouldn't panic. Thanks for reporting!
I definitely agree that the null value is invalid. I just happened to accidentally hack up an SBOM file in such a way that this happened. I was just testing some stuff out. (My main aim here is to say I am not writing an SBOM generator that generates invalid SPDX SBOMs)
If I try to parse spdx-null-rel.json - a JSON SBOM containing a
null
value in therelationships
array, then I get a panic. I am usingtools-golang
v0.5.4.The text was updated successfully, but these errors were encountered: