Bug 1476603: Fix DEAD_STORE error in dom/indexedDB/ActorsParent.cpp. r?njn draft
authorRobert Bartlensky <rbartlensky@mozilla.com>
Thu, 19 Jul 2018 13:36:33 +0100
changeset 820382 e32b2f8e11d6
parent 820343 183ee39bf309
push id116804
push userbmo:rbartlensky@mozilla.com
push dateThu, 19 Jul 2018 13:36:31 +0000
reviewersnjn
bugs1476603
milestone63.0a1
Bug 1476603: Fix DEAD_STORE error in dom/indexedDB/ActorsParent.cpp. r?njn MozReview-Commit-ID: B6oqb3tp3ND
dom/indexedDB/ActorsParent.cpp
--- a/dom/indexedDB/ActorsParent.cpp
+++ b/dom/indexedDB/ActorsParent.cpp
@@ -3939,16 +3939,19 @@ UpgradeIndexDataValuesFunction::OnFuncti
   rv = ReadOldCompressedIDVFromBlob(oldBlob, oldBlobLength, oldIdv);
   if (NS_WARN_IF(NS_FAILED(rv))) {
     return rv;
   }
 
   UniqueFreePtr<uint8_t> newIdv;
   uint32_t newIdvLength;
   rv = MakeCompressedIndexDataValues(oldIdv, newIdv, &newIdvLength);
+  if (NS_WARN_IF(NS_FAILED(rv))) {
+    return rv;
+  }
 
   std::pair<uint8_t*, int> data(newIdv.release(), newIdvLength);
 
   nsCOMPtr<nsIVariant> result = new storage::AdoptedBlobVariant(data);
 
   result.forget(aResult);
   return NS_OK;
 }