mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
no bug - fix nullptr to bool conversions in Blob.cpp r=themaid
--HG-- extra : rebase_source : aa2c9dc11c88beb53b12ddd583121ca90a2f4969
This commit is contained in:
parent
aef716e1d5
commit
0f8704de2c
@ -3874,7 +3874,7 @@ BlobParent::RecvPBlobStreamConstructor(PBlobStreamParent* aActor,
|
||||
// Make sure we can't overflow.
|
||||
if (NS_WARN_IF(UINT64_MAX - aLength < aStart)) {
|
||||
ASSERT_UNLESS_FUZZING();
|
||||
return nullptr;
|
||||
return false;
|
||||
}
|
||||
|
||||
ErrorResult errorResult;
|
||||
@ -3883,7 +3883,7 @@ BlobParent::RecvPBlobStreamConstructor(PBlobStreamParent* aActor,
|
||||
|
||||
if (NS_WARN_IF(aStart + aLength > blobLength)) {
|
||||
ASSERT_UNLESS_FUZZING();
|
||||
return nullptr;
|
||||
return false;
|
||||
}
|
||||
|
||||
nsRefPtr<FileImpl> blobImpl;
|
||||
|
Loading…
Reference in New Issue
Block a user