Skip to content

Commit 62ae484

Browse files
committed
autoformat and update expected output
1 parent ad52d64 commit 62ae484

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

javascript/ql/src/semmle/javascript/Arrays.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ private module ArrayDataFlow {
208208
* A step for creating an array and storing the elements in the array.
209209
*/
210210
private class ArrayCreationStep extends DataFlow::AdditionalFlowStep, DataFlow::Node {
211-
ArrayCreationStep() {
212-
this instanceof DataFlow::ArrayCreationNode
213-
}
211+
ArrayCreationStep() { this instanceof DataFlow::ArrayCreationNode }
214212

215213
override predicate storeStep(DataFlow::Node element, DataFlow::Node obj, string prop) {
216214
prop = arrayElement() and

javascript/ql/test/query-tests/Security/CWE-078/CommandInjection.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ edges
144144
| execSeries.js:18:34:18:40 | req.url | execSeries.js:18:13:18:47 | require ... , true) |
145145
| execSeries.js:18:34:18:40 | req.url | execSeries.js:18:13:18:47 | require ... , true) |
146146
| execSeries.js:19:12:19:16 | [cmd] | execSeries.js:13:19:13:26 | commands |
147+
| execSeries.js:19:13:19:15 | cmd | execSeries.js:6:14:6:21 | arr[i++] |
147148
| execSeries.js:19:13:19:15 | cmd | execSeries.js:19:12:19:16 | [cmd] |
148149
| other.js:5:9:5:49 | cmd | other.js:7:33:7:35 | cmd |
149150
| other.js:5:9:5:49 | cmd | other.js:7:33:7:35 | cmd |

0 commit comments

Comments
 (0)