mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1234540 - verify the validity of hashEntry, if it's null return with NS_ERROR_FAILURE. r=michal
This commit is contained in:
parent
07161a924f
commit
7637865f1c
3
netwerk/cache/nsCacheEntry.cpp
vendored
3
netwerk/cache/nsCacheEntry.cpp
vendored
@ -436,6 +436,9 @@ nsCacheEntryHashTable::AddEntry( nsCacheEntry *cacheEntry)
|
||||
if (!cacheEntry) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
hashEntry = table.Add(&(cacheEntry->mKey), fallible);
|
||||
|
||||
if (!hashEntry)
|
||||
return NS_ERROR_FAILURE;
|
||||
#ifndef DEBUG_dougt
|
||||
NS_ASSERTION(((nsCacheEntryHashTableEntry *)hashEntry)->cacheEntry == 0,
|
||||
"### nsCacheEntryHashTable::AddEntry - entry already used");
|
||||
|
Loading…
Reference in New Issue
Block a user