mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
JS: Move some alerts to their correct location
One of the diffs look confusing but:
Previously parameter {2,3} where flagged, now parameter {1,2} are flagged.
Note that for command injection, the SystemCommandExecution is flagged
despite the test file claiming otherwise.
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
for (j = i - 1; j >= 0; --j) {
|
||||
}
|
||||
|
||||
for (j = i + 1; j < strLength; --j) { // $ Alert
|
||||
}
|
||||
for (j = i + 1; j < strLength; --j) {
|
||||
} // $ Alert
|
||||
|
||||
for (var i = 0, l = c.length; i > l; i ++) { // $ Alert
|
||||
}
|
||||
for (var i = 0, l = c.length; i > l; i ++) {
|
||||
} // $ Alert
|
||||
|
||||
|
||||
for (i=lower-1; i>=0; --i)
|
||||
a[i] = 0;
|
||||
|
||||
for (i=upper+1; i<a.length; --i) // $ Alert
|
||||
a[i] = 0;
|
||||
for (i=upper+1; i<a.length; --i)
|
||||
a[i] = 0; // $ Alert
|
||||
|
||||
Reference in New Issue
Block a user