archives

« Bugzilla Issues Index

#1674 — 15.13.6.3.6: out-of-bounds index calculated


Change step 26e of 15.13.6.3.6 "%TypedArray%.prototype.set(array, offset = 0)" from:
> Perform SetValueInBuffer(targetBuffer, k × targetElementSize, targetType, kNumber).

To:
> Perform SetValueInBuffer(targetBuffer, targetByteIndex, targetType, kNumber).


because `k × targetElementSize` may result in an out-of-bound index position.


fixed in rev17 editor's draft


fixed in rev17, August 23, 2013 draft