mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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;
|
iid->value = &iid->backing;
|
||||||
|
|
||||||
|
sa_assert(iid->value);
|
||||||
nsIDFromChar(iid->value, uuid);
|
nsIDFromChar(iid->value, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user