The converttodecimal function in vasnprintf.c in Gnulib before 2018-09-23 has a heap-based buffer overflow because memory is not allocated for a trailing '\0' character during %f processing.
[
{
"digest": {
"line_hashes": [
"229386864100362742395171523966439953396",
"272341287738193040027583357173502084572",
"260935206951781656671285336310863070516",
"258324227169521172141694111686821196115"
],
"threshold": 0.9
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "lib/vasnprintf.c"
},
"id": "CVE-2018-17942-27bc3964",
"source": "https://github.com/coreutils/gnulib/commit/278b4175c9d7dd47c1a3071554aac02add3b3c35"
},
{
"digest": {
"function_hash": "269350412939707273940773259891075763573",
"length": 816.0
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "lib/vasnprintf.c",
"function": "convert_to_decimal"
},
"id": "CVE-2018-17942-a6fdad85",
"source": "https://github.com/coreutils/gnulib/commit/278b4175c9d7dd47c1a3071554aac02add3b3c35"
},
{
"digest": {
"line_hashes": [
"131391253255561766648621509591014579029",
"133734765937967660399959801886915531128",
"46393908124578637128160449109458356407",
"202363911030448863139018023131591996039"
],
"threshold": 0.9
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "tests/test-vasnprintf.c"
},
"id": "CVE-2018-17942-d2e104c4",
"source": "https://github.com/coreutils/gnulib/commit/278b4175c9d7dd47c1a3071554aac02add3b3c35"
}
]