mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1193564 - Check result of Read32 in nsSupportsArray::Read. r=erahm
This commit is contained in:
parent
9040168887
commit
d6c5ff450f
@ -189,6 +189,9 @@ nsSupportsArray::Read(nsIObjectInputStream* aStream)
|
||||
|
||||
uint32_t newArraySize;
|
||||
rv = aStream->Read32(&newArraySize);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
if (newArraySize <= kAutoArraySize) {
|
||||
if (mArray != mAutoArray) {
|
||||
|
Loading…
Reference in New Issue
Block a user