commit | 6011da667296e3ea0c7245d13815e1e37401c269 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Jan 06 12:17:34 2022 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Jan 06 21:15:24 2022 +0000 |
tree | 9f188a01c9ce0071fb4d9ea0f9d28cd317a4d8a0 | |
parent | 5ec67cc353d21d41fac93b8afe09ce9108d5b9b9 [diff] |
internal/cveschema: handle different formats for Credit The "credit" field in the CVE schema can be a []string, a []LangString, or a more complicated object. Decode it in any of those forms. By adding an UnmarshalJSON method to the CVE type, we don't need to change any existing code. Change-Id: Iba2477f23dcfb6c1d6d4fbd55f55ede54522bc2c Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/375954 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This repository contains the reports for the Go Vulnerability Database.
If you are interested accessing data from the Go Vulnerability Database, see x/vuln for information. This repository is only used for adding new vulnerabilities.
We are not accepting new vulnerability reports at this time. We will update this README.md once we are ready to receive reports.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Database entries are distributed under the terms of the CC-BY 4.0 license. See x/vuln for information on how to access these entries.