mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1151506 - Null-check the count parameter in GetConstantCount. r=froydnj
This commit is contained in:
parent
29eec391b3
commit
2f80184007
@ -190,6 +190,9 @@ xptiInterfaceEntry::GetConstantCount(uint16_t* count)
|
||||
if(!EnsureResolved())
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
if(!count)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
*count = mConstantBaseIndex +
|
||||
mDescriptor->num_constants;
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user