mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
parent
b2a849935b
commit
6fc0b2a43d
2 changed files with 19 additions and 3 deletions
|
@ -0,0 +1,9 @@
|
|||
test("Issue #9336, integer overflow in get_view_value", () => {
|
||||
const dataView = new DataView(new ArrayBuffer(16));
|
||||
expect(() => {
|
||||
dataView.getUint32(0xfffffffc);
|
||||
}).toThrowWithMessage(
|
||||
RangeError,
|
||||
"Data view byte offset 4294967292 is out of range for buffer with length 16"
|
||||
);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue