From 324f46290ba8a3afd47e737b05eaa81d3ce211df Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Aug 2015 14:24:59 -0700 Subject: [PATCH] Bug 1193567 - Check result of ReadID in nsXBLPrototypeBinding::Read(). r=wchen --- dom/xbl/nsXBLPrototypeBinding.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/xbl/nsXBLPrototypeBinding.cpp b/dom/xbl/nsXBLPrototypeBinding.cpp index 94244d73dc8..8a060152214 100644 --- a/dom/xbl/nsXBLPrototypeBinding.cpp +++ b/dom/xbl/nsXBLPrototypeBinding.cpp @@ -901,7 +901,8 @@ nsXBLPrototypeBinding::Read(nsIObjectInputStream* aStream, for (; interfaceCount > 0; interfaceCount--) { nsIID iid; - aStream->ReadID(&iid); + rv = aStream->ReadID(&iid); + NS_ENSURE_SUCCESS(rv, rv); mInterfaceTable.Put(iid, mBinding); }