child_process: validate fork/execFile arguments
Checklist
-
make -j4 test
(UNIX) orvcbuild test nosign
(Windows) passes -
a test and/or benchmark is included -
the commit message follows commit guidelines
Affected core subsystem(s)
child_process
Description of change
I took the tests that @ChuckLangford wrote in https://github.com/nodejs/node/pull/4508 and implemented code such that they pass. This fixes https://github.com/nodejs/node/issues/2681.