Commit 97a7728
committed
child_process: improve ChildProcess validation
This commit improves input validation for the ChildProcess
internals. It became officially supported API a while back, but
never had any validation.
Refs: #12177
PR-URL: #12348
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>1 parent 59c6230 commit 97a7728Copy full SHA for 97a7728
File tree
Expand file treeCollapse file tree
2 files changed
+63
-3
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
2 files changed
+63
-3
lines changedOpen diff view settings
Collapse file
lib/internal/child_process.js
Copy file name to clipboardExpand all lines: lib/internal/child_process.js+19-3Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
254 | 254 | |
255 | 255 | |
256 | 256 | |
| 257 | + |
| 258 | + |
| 259 | + |
257 | 260 | |
258 | 261 | |
259 | 262 | |
| ||
265 | 268 | |
266 | 269 | |
267 | 270 | |
268 | | - |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
269 | 276 | |
270 | 277 | |
271 | 278 | |
272 | | - |
273 | | - |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
274 | 290 | |
275 | 291 | |
276 | 292 | |
|
Collapse file
test/parallel/test-child-process-constructor.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-constructor.js+44Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
8 | 52 | |
9 | 53 | |
10 | 54 | |
|
0 commit comments