mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
javascript cataloger: node binary: nil pointer dereference (#1313)
Co-authored-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
parent
3e99c4d7d8
commit
bc9740d50a
@ -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
|
// TODO add node specific metadata to the packages to help with vulnerability matching
|
||||||
if p != nil {
|
if p != nil {
|
||||||
p.Language = pkg.JavaScript
|
p.Language = pkg.JavaScript
|
||||||
|
p.SetID()
|
||||||
return []pkg.Package{*p}, nil, nil
|
return []pkg.Package{*p}, nil, nil
|
||||||
}
|
}
|
||||||
p.SetID()
|
|
||||||
return nil, nil, nil
|
return nil, nil, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user