[tor-commits] [tor-browser/esr24] Bug 950604 - Backport of a small bugfix that was part of bug 861925. r=luke, a=sledru

mikeperry at torproject.org mikeperry at torproject.org
Fri Aug 29 05:26:37 UTC 2014


commit 2c7a92b1f7a9b83450bd525b3014e13a22ca55b6
Author: Steve Fink <sfink at mozilla.com>
Date:   Wed Jan 22 22:14:04 2014 -0800

    Bug 950604 - Backport of a small bugfix that was part of bug 861925. r=luke, a=sledru
---
 js/src/jstypedarray.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/js/src/jstypedarray.cpp b/js/src/jstypedarray.cpp
index 53afdc1..b8cf614 100644
--- a/js/src/jstypedarray.cpp
+++ b/js/src/jstypedarray.cpp
@@ -651,7 +651,9 @@ ArrayBufferObject::stealContents(JSContext *cx, JSObject *obj, void **contents,
     }
 
     // Neuter the donor ArrayBuffer and all views of it
+    uint32_t flags = header->flags;
     ArrayBufferObject::setElementsHeader(header, 0);
+    header->flags = flags;
     GetViewList(&buffer)->init(views);
     for (JSObject *view = views; view; view = NextView(view))
         TypedArray::neuter(view);





More information about the tor-commits mailing list