1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Fix pattern matching of purls and document categories. Extract purls from relationships.

This commit is contained in:
Sascha L. Teichmann 2023-11-02 18:23:43 +01:00
parent effd4a01af
commit 7f9449a12f
2 changed files with 13 additions and 2 deletions

View file

@ -123,4 +123,15 @@ func (uf *urlFinder) findURLs(adv *csaf.Advisory) {
for _, b := range tree.Branches {
recBranch(b)
}
// Third iterate over relationships.
if tree.RelationShips != nil {
for _, rel := range *tree.RelationShips {
if rel != nil {
if fpn := rel.FullProductName; fpn != nil && fpn.ProductID != nil {
add(slices.Index(uf.ids, *fpn.ProductID), fpn.ProductIdentificationHelper)
}
}
}
}
}