Skip to content

Commit da0bee0

Browse files
author
Patrick Soquet
committed
XS: secaudit issue #1
1 parent 12478ea commit da0bee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xs/sources/xsDataView.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ void fx_ArrayBuffer_prototype_concat(txMachine* the)
558558
arrayBuffer = slot;
559559
bufferInfo = slot->next;
560560
}
561-
if (arrayBuffer)
562-
length += bufferInfo->value.bufferInfo.length;
561+
if (arrayBuffer)
562+
length = fxAddChunkSizes(the, length, bufferInfo->value.bufferInfo.length);
563563
else
564564
mxTypeError("arguments[%ld] is no ArrayBuffer instance", i);
565565
i++;

0 commit comments

Comments
 (0)