no bug - fix nullptr to bool conversions in Blob.cpp r=themaid

--HG--
extra : rebase_source : aa2c9dc11c88beb53b12ddd583121ca90a2f4969
This commit is contained in:
Trevor Saunders 2014-11-03 07:59:27 -05:00
parent aef716e1d5
commit 0f8704de2c

View File

@ -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;