Parsing invalid messages can panic. Parsing a text-format message which contains a potential number consisting of a minus sign, one or more characters of whitespace, and no further input will cause a panic.
{
"cna_assigner": "Go",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/24xxx/CVE-2023-24535.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "1.29.0"
},
{
"fixed": "1.29.1"
},
{
"introduced": "1.29.0"
},
{
"fixed": "1.29.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:protobuf:protobuf:1.29.0:*:*:*:*:go:*:*",
"range": [
{
"introduced": "1.29.0"
},
{
"last_affected": "1.29.0"
}
],
"source": "CPE_STRING"
}
]
}