Skip to content

C++: Refactor CWE-497 for clarity and performance#547

Merged
adityasharad merged 1 commit into
github:rc/1.19from
pavgust:fix/cwe-497-performance
Nov 26, 2018
Merged

C++: Refactor CWE-497 for clarity and performance#547
adityasharad merged 1 commit into
github:rc/1.19from
pavgust:fix/cwe-497-performance

Conversation

@pavgust

@pavgust pavgust commented Nov 26, 2018

Copy link
Copy Markdown
Contributor

This lifts out an intermediate helper predicate that restricts attention to only variables which are somehow affected by potential system data. The restriction existed before, but could be applied too late, meaning that on at least one database (with several very frequently accessed global variables) the query took too long.

Behaviour should be unchanged, and performance improvements have been confirmed on the problematic database.

@pavgust pavgust requested a review from a team as a code owner November 26, 2018 15:24
@jbj jbj added the C++ label Nov 26, 2018
@jbj

jbj commented Nov 26, 2018

Copy link
Copy Markdown
Contributor

Do you want this in 1.19?

@pavgust pavgust changed the base branch from master to rc/1.19 November 26, 2018 16:01
@pavgust

pavgust commented Nov 26, 2018

Copy link
Copy Markdown
Contributor Author

Good point, we may as well. Retargetted.

@jbj jbj added this to the 1.19 milestone Nov 26, 2018
@adityasharad adityasharad merged commit 7aef8fa into github:rc/1.19 Nov 26, 2018
cklin pushed a commit that referenced this pull request May 23, 2022
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.

3 participants