dequal icon indicating copy to clipboard operation
dequal copied to clipboard

fix: prevent comparisons beyond typed array bounds

Open EvanWard97 opened this issue 3 years ago • 0 comments

Reverse iteration over TypedArrays was starting at foo.byteLength - 1, not foo.length - 1. For TypedArrays with .BYTES_PER_ELEMENT greater than 1, that was resulting in up to 7*foo.length needless pairs of out-of-bounds array accesses and undefined === undefined comparisons.

EvanWard97 avatar May 09 '22 19:05 EvanWard97