Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
child_process: use stdio.fd even if it is 0
Previously, in _validateStdio we were using stdio.fd || stdio. If stdio.fd was falsy (or 0 in the case of stdin), then the entire stdio object would be passed which could cause a crash. Fixes: #2721 PR-URL: #2727 Reviewed-By: silverwind - Roman Reiss <firstname.lastname@example.org> Reviewed-By: cjihrig - Colin Ihrig <email@example.com> Reviewed-By: indutny - Fedor Indutny <firstname.lastname@example.org>
- Loading branch information
Showing 2 changed files with 13 additions and 1 deletion.