mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
vbox: Address false positive for NULL dereference
Resolve a false positive from 'vboxIIDFromUUID_v2_x()'. The code sets 'iid->value = &iid->backing' unconditionally prior to calling 'nsIDFromChar()'. The 'vboxIIDUnalloc_v2_x()' checks iid->value to not be &iid->backing. The iid->backing is a static buffer within the initialized structure.
This commit is contained in:
parent
2cebf84867
commit
4f01d3d53b
@ -444,6 +444,7 @@ vboxIIDFromUUID_v2_x(vboxGlobalData *data, vboxIID_v2_x *iid,
|
||||
|
||||
iid->value = &iid->backing;
|
||||
|
||||
sa_assert(iid->value);
|
||||
nsIDFromChar(iid->value, uuid);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user