Fix buffer overflow in LoadDefaultCollection
CVE-2020-15007: https://nvd.nist.gov/vuln/detail/CVE-2020-15007
This commit is contained in:
@ -512,7 +512,7 @@ static void LoadDefaultCollection(default_collection_t *collection)
|
||||
|
||||
while (!feof(f))
|
||||
{
|
||||
if (fscanf (f, "%79s %[^\n]\n", defname, strparm) != 2)
|
||||
if (fscanf (f, "%79s %99[^\n]\n", defname, strparm) != 2)
|
||||
{
|
||||
// This line doesn't match
|
||||
|
||||
|
Reference in New Issue
Block a user