Skip to content

Commit 0fb79bd

Browse files
committed
JS: Include a local step before store step
1 parent c674afb commit 0fb79bd

File tree

1 file changed

+2
-1
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+2
-1
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Express.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ module Express {
216216
Http::routeHandlerStep(result, succ) and
217217
t = t2
218218
or
219-
DataFlow::SharedFlowStep::storeStep(result, succ, DataFlow::PseudoProperties::arrayElement()) and
219+
DataFlow::SharedFlowStep::storeStep(result.getALocalUse(), succ,
220+
DataFlow::PseudoProperties::arrayElement()) and
220221
t = t2.continue()
221222
)
222223
}

0 commit comments

Comments
 (0)