Skip to content

JS: change precision of js/loop-bound-injection to high#2165

Merged
semmle-qlci merged 1 commit intogithub:masterfrom
erik-krogh:dosHigh
Oct 25, 2019
Merged

JS: change precision of js/loop-bound-injection to high#2165
semmle-qlci merged 1 commit intogithub:masterfrom
erik-krogh:dosHigh

Conversation

@erik-krogh
Copy link
Contributor

Change precision of js/loop-bound-injection to high.

Also fixes an FP.
We already found that kind of FP for for (var i = 0... loops, so it was just a case of adapting it for _.forEach(...) loops.

Me taking a rough look at the results from the Chris API gives an ~80% TP rate, which is better than I expected, and I'm therefore upgrading precision of the query to high.
There are still false positives, but they are hard to eliminate in a nice way.

Performance evaluation is on the way, but I would be surprised if performance changed.

@erik-krogh erik-krogh added the JS label Oct 21, 2019
@erik-krogh erik-krogh requested a review from a team as a code owner October 21, 2019 17:55
Copy link
Contributor

@asger-semmle asger-semmle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from the one comment

@erik-krogh
Copy link
Contributor Author

Performance evaluation is done.
The performance is within the margin of error of the previous performance.

@max-schaefer
Copy link
Contributor

@asger-semmle, this looks good to go?

@semmle-qlci semmle-qlci merged commit d2f3574 into github:master Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants