Closed nchelluri closed 6 months ago
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 null
relationships
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.