Skip to content

Commit

Permalink
fixup! fixup! dgram: fix send with out of bounds offset + length
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkgoron committed Oct 24, 2021
1 parent b392a94 commit dcde72f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-dgram-send-bad-arguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function checkArgs(connected) {
Buffer.from('hello world').subarray(4, 9),
Buffer.from('hello world').subarray(6),
new Uint8Array([1, 2, 3, 4, 5]),
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(0, 5),
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(2, 7),
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).slice(3),
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(0, 5),
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(2, 7),
new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8]).subarray(3),
new DataView(new ArrayBuffer(5), 0),
new DataView(new ArrayBuffer(6), 1),
new DataView(new ArrayBuffer(7), 1, 5)]) {
Expand Down

0 comments on commit dcde72f

Please sign in to comment.