Skip to content

Commit a872d7c

Browse files
committed
add comment about negative optionsArg
1 parent bb911bb commit a872d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/frameworks/SystemCommandExecutors.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import javascript
77

88
private class SystemCommandExecutors extends SystemCommandExecution, DataFlow::InvokeNode {
99
int cmdArg;
10-
int optionsArg;
10+
int optionsArg; // either a positive number representing the n'th argument, or a negative number representing the n'th last argument (e.g. -2 is the second last argument).
1111

1212
boolean shell;
1313
boolean sync;

0 commit comments

Comments
 (0)