Skip to content

Commit

Permalink
javascript cataloger: node binary: nil pointer dereference (#1313)
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Zantow <[email protected]>
  • Loading branch information
kmoens and kzantow authored Nov 3, 2022
1 parent 3e99c4d commit bc9740d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syft/pkg/cataloger/javascript/parse_node_binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func parseNodeBinary(_ source.FileResolver, _ *generic.Environment, reader sourc
// TODO add node specific metadata to the packages to help with vulnerability matching
if p != nil {
p.Language = pkg.JavaScript
p.SetID()
return []pkg.Package{*p}, nil, nil
}
p.SetID()
return nil, nil, nil
}

0 comments on commit bc9740d

Please sign in to comment.