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:
Asger F
2025-02-11 15:17:10 +01:00
parent f5911c9e5a
commit 86932c51bc
18 changed files with 103 additions and 103 deletions

View File

@@ -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