Update javascript/ql/test/query-tests/Security/CWE-078/UselessUseOfCat/uselesscat.js

Co-authored-by: Napalys Klicius <napalys@github.com>
This commit is contained in:
Asger F
2025-03-10 14:18:02 +01:00
committed by GitHub
parent 2a194a53af
commit 24c9b2ef9b

View File

@@ -41,7 +41,7 @@ execSync(`cat ${newpath} > ${destpath}`).toString();
execSync(`cat ${files.join(' ')} > ${outFile}`);
execSync(`cat ${files.join(' ')}`); // $ SPURIOUS: Alert - - but flagged - not just a simple file read
execSync(`cat ${files.join(' ')}`); // $ SPURIOUS: Alert - not just a simple file read
exec("cat /proc/cpuinfo | grep name"); // OK - pipes