mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
EFname.c: potential dereference of a null pointer
Theoretical NULL pointer deref, assumes no iteration occurs. Seems like false positive from incorrect caller use, from passing suffix==NULL. SonarCloud Access to field 'hn_parent' results in a dereference of a null pointer (loaded from variable 'prev') https://sonarcloud.io/project/issues?open=AZJB167jNGfDNup0RjGu&id=dlmiles_magic
This commit is contained in:
committed by
Tim Edwards
parent
db85521449
commit
6a513d01a1
+2
-1
@@ -189,7 +189,8 @@ EFHNConcat(prefix, suffix)
|
||||
else
|
||||
firstNew = new;
|
||||
}
|
||||
prev->hn_parent = prefix;
|
||||
if (prev)
|
||||
prev->hn_parent = prefix;
|
||||
|
||||
return firstNew;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user