HuffmanTree_makeFromFrequencies in lodepng.c in LodePNG through 2019-09-28, as used in WinPR in FreeRDP and other products, has a memory leak because a supplied realloc pointer (i.e., the first argument to realloc) is also used for a realloc return value.
{
"unresolved_ranges": [
{
"cpe": "cpe:2.3:a:lodev:lodepng:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "2019-09-28"
}
],
"source": "CPE_FIELD"
},
{
"extracted_events": [
{
"last_affected": "15.0"
}
],
"cpe": "cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*",
"source": "CPE_FIELD"
},
{
"cpe": "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*",
"extracted_events": [
{
"last_affected": "15.1"
}
],
"source": "CPE_FIELD"
}
]
}{
"cpe": [
"cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*",
"cpe:2.3:a:freerdp:freerdp:1.1.0:beta1:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "1.0.2"
},
{
"last_affected": "1.1.0-beta1"
}
],
"source": "CPE_FIELD"
}