Bug 1411030 - memset only the underlying vector from the Array container. r=froydnj
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Tue, 24 Oct 2017 16:52:20 +0300
changeset 685743 a08737444fc386f2e008fabe78decf40830a5473
parent 685742 50877116db1a8c610c77f77529178a0284d8fb47
child 685744 c396dc1fb2c53b6dda438a6d61aef7f1513e9a42
push id86016
push userkgupta@mozilla.com
push dateWed, 25 Oct 2017 01:53:44 +0000
reviewersfroydnj
bugs1411030
milestone58.0a1
Bug 1411030 - memset only the underlying vector from the Array container. r=froydnj MozReview-Commit-ID: 5R7ZxMEZdRY
dom/bindings/BindingUtils.h
--- a/dom/bindings/BindingUtils.h
+++ b/dom/bindings/BindingUtils.h
@@ -474,17 +474,17 @@ class ProtoAndIfaceCache
       return aMallocSizeOf(this);
     }
   };
 
   class PageTableCache
   {
   public:
     PageTableCache() {
-      memset(&mPages, 0, sizeof(mPages));
+      memset(mPages.begin(), 0, sizeof(mPages));
     }
 
     ~PageTableCache() {
       for (size_t i = 0; i < ArrayLength(mPages); ++i) {
         delete mPages[i];
       }
     }