Module PrettyPrintCatCall
Predicates for creating an equivalent call to fs.readFile
from a command execution of cat
.
Import path
import semmle.javascript.security.UselessUseOfCat
Predicates
createCallbackString | Create a string representing the callback |
createFileArgument | Create a string representation of the expression that determines what file is read by |
createFileThatIsReadFromCommandList | Create the file that is read for a call with an explicit command list (e.g. |
createReadFileCall | Create a string representation of an equivalent call to |