fix: sanitise pid parameter (#31)
This patch adds a simple check to the process ID passed in, ensuring it is a number, and throwing an error otherwise. The aim is to fix the issue explained here: - https://hackerone.com/reports/701183 - https://snyk.io/vuln/SNYK-JS-TREEKILL-536781 Fixes: #30
R
Rob Cresswell committed
ff73dbf144c4c2daa67799a50dfff59cd455c63c
Parent: 3b5b8fe
Committed by William Hilton <wmhilton@gmail.com>
on 12/11/2019, 6:05:55 PM