We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 317356e + 707f75f commit 67b3279Copy full SHA for 67b3279
java/ql/src/Security/CWE/CWE-078/ExecUnescaped.java
@@ -4,7 +4,7 @@ public static void main(String[] args) {
4
{
5
String latlonCoords = args[1];
6
Runtime rt = Runtime.getRuntime();
7
- Process exec = rt.exec("cmd.exe /C latlon2utm.exe -" + latlonCoords);
+ Process exec = rt.exec("cmd.exe /C latlon2utm.exe " + latlonCoords);
8
}
9
10
// GOOD: use an array of arguments instead of executing a string
0 commit comments