Bug 1193564 - Check result of Read32 in nsSupportsArray::Read. r=erahm

This commit is contained in:
Andrew McCreight 2015-08-13 14:24:59 -07:00
parent 9040168887
commit d6c5ff450f

View File

@ -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) {