-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nvd-cve-osv): check for nil when logging
VendorProduct
(#2706)
The log line added in #2678 was causing a panic when `vp` is nil (that we didn't notice 🤦). I believe it's causing processing to stop early, so we end up missing records and marking them as 'withdrawn' #2704 Also adding some checks elsewhere where vp might be dereferenced. Also added the `-e` flag to the run bash script so any other failures stop it from uploading (thanks @another-rex for pointing this out)
- Loading branch information
1 parent
649fd23
commit dbe3aa6
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/bash -e | ||
|
||
# Copyright 2023 Google LLC | ||
# | ||
|