Bug 1923017 - Fix null ptr deref in CacheFileIOManager::Read a=diannaS
Original Revision: https://phabricator.services.mozilla.com/D253658 Differential Revision: https://phabricator.services.mozilla.com/D259939
This commit is contained in:
committed by
dsmith@mozilla.com
parent
442a28af4b
commit
6c1be2988e
@@ -1953,6 +1953,10 @@ nsresult CacheFileIOManager::Read(CacheFileHandle* aHandle, int64_t aOffset,
|
|||||||
return NS_ERROR_NOT_INITIALIZED;
|
return NS_ERROR_NOT_INITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!aHandle) {
|
||||||
|
return NS_ERROR_NULL_POINTER;
|
||||||
|
}
|
||||||
|
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
RefPtr<CacheFileIOManager> ioMan = gInstance;
|
RefPtr<CacheFileIOManager> ioMan = gInstance;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user