Bug 1176214 - Part 14: Changes to netwerk. r=jduell

This commit is contained in:
Lars T Hansen 2015-11-25 17:30:52 +01:00
parent c0a027a973
commit a8b5356268

View File

@ -105,7 +105,9 @@ ArrayBufferInputStream::ReadSegments(nsWriteSegmentFun writer, void *closure,
// holding area before passing it to writer().
{
JS::AutoCheckCannotGC nogc;
char* src = (char*) JS_GetArrayBufferData(mArrayBuffer->get(), nogc) + mOffset + mPos;
bool isShared;
char* src = (char*) JS_GetArrayBufferData(mArrayBuffer->get(), &isShared, nogc) + mOffset + mPos;
MOZ_ASSERT(!isShared); // Because ArrayBuffer
memcpy(buffer, src, count);
}
uint32_t written;