net: validate custom lookup() output · nodejs/node@6b5d679 · GitHub
Skip to content

Commit 6b5d679

Browse files
cjihrigaddaleax
authored andcommitted
net: validate custom lookup() output
This commit adds validation to the IP address returned by the net module's custom DNS lookup() function. PR-URL: #34813 Fixes: #34812 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 4661b88 commit 6b5d679

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

lib/net.js

Lines changed: 3 additions & 0 deletions

test/parallel/test-net-dns-custom-lookup.js

Lines changed: 11 additions & 0 deletions

0 commit comments

Comments
 (0)