dgram: fix send with out of bounds offset + length · nodejs/node@23d11a1 · GitHub
Skip to content

Commit 23d11a1

Browse files
LinkgoronBethGriggs
authored andcommitted
dgram: fix send with out of bounds offset + length
fix Socket.prototype.send sending garbage when the message is a string, or Buffer and offset+length is out of bounds. Fixes: #40491 PR-URL: #40568 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent dab574e commit 23d11a1

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

lib/dgram.js

Lines changed: 8 additions & 0 deletions

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

Lines changed: 41 additions & 0 deletions

0 commit comments

Comments
 (0)