mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
parent
b2a849935b
commit
6fc0b2a43d
Notes:
sideshowbarker
2024-07-18 07:06:33 +09:00
Author: https://github.com/linusg
Commit: 6fc0b2a43d
Pull-request: https://github.com/SerenityOS/serenity/pull/9348
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