Skip to content

Commit dcde72f

Browse files
committed
fixup! fixup! dgram: fix send with out of bounds offset + length
1 parent b392a94 commit dcde72f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-dgram-send-bad-arguments.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ function checkArgs(connected) {
8484
Buffer.from('hello world').subarray(4, 9),
8585
Buffer.from('hello world').subarray(6),
8686
new Uint8Array([1, 2, 3, 4, 5]),
87-
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(0, 5),
88-
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(2, 7),
89-
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(3),
87+
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(0, 5),
88+
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(2, 7),
89+
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(3),
9090
new DataView(new ArrayBuffer(5), 0),
9191
new DataView(new ArrayBuffer(6), 1),
9292
new DataView(new ArrayBuffer(7), 1, 5)]) {

0 commit comments

Comments
 (0)