Commit 0716944
dgram: fix abort on bad args
This commit fixes a C++ abort for connected dgram sockets
by improving input validation in the JS layer.
Fixes: #28126
PR-URL: #28135
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent e1fc9b9 commit 0716944Copy full SHA for 0716944
File tree
Expand file treeCollapse file tree
2 files changed
+21
-9
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+21
-9
lines changedOpen diff view settings
Collapse file
+12-9Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
561 | 561 | |
562 | 562 | |
563 | 563 | |
564 | | - |
565 | | - |
566 | | - |
567 | | - |
568 | | - |
569 | | - |
570 | | - |
571 | | - |
572 | 564 | |
573 | | - |
| 565 | + |
| 566 | + |
| 567 | + |
| 568 | + |
| 569 | + |
| 570 | + |
| 571 | + |
| 572 | + |
| 573 | + |
| 574 | + |
| 575 | + |
| 576 | + |
574 | 577 | |
575 | 578 | |
576 | 579 | |
|
Collapse file
test/parallel/test-dgram-send-bad-arguments.js
Copy file name to clipboardExpand all lines: test/parallel/test-dgram-send-bad-arguments.js+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
68 | 68 | |
69 | 69 | |
70 | 70 | |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
71 | 80 | |
72 | 81 | |
73 | 82 | |
|
0 commit comments