Skip to content

CPP: Add side effect models for strcpy and strcat.#3089

Merged
jbj merged 11 commits into
github:masterfrom
geoffw0:sideeffect
Mar 31, 2020
Merged

CPP: Add side effect models for strcpy and strcat.#3089
jbj merged 11 commits into
github:masterfrom
geoffw0:sideeffect

Conversation

@geoffw0

@geoffw0 geoffw0 commented Mar 18, 2020

Copy link
Copy Markdown
Contributor

Add SideEffectFunction models for strcpy and strcat. This turned out not to be important for the issue I was looking at, but we might as well keep the models.

@geoffw0 geoffw0 added the C++ label Mar 18, 2020
@geoffw0 geoffw0 requested a review from a team as a code owner March 18, 2020 16:50
@rdmarsh2

Copy link
Copy Markdown
Contributor

The test failure is a true positive we lost when we switched to IR-based value numbering.

@geoffw0

geoffw0 commented Mar 19, 2020

Copy link
Copy Markdown
Contributor Author

The test failure is a true positive we lost when we switched to IR-based value numbering.

Thanks - yes, it looks like a good change and nice surprise!

@jbj jbj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Otherwise LGTM

Comment thread cpp/ql/src/semmle/code/cpp/models/implementations/Strcpy.qll Outdated

@jbj jbj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Missing overrides

Comment thread cpp/ql/src/semmle/code/cpp/models/implementations/Strcat.qll Outdated
Comment thread cpp/ql/src/semmle/code/cpp/models/implementations/Strcat.qll Outdated
@jbj

jbj commented Mar 24, 2020

Copy link
Copy Markdown
Contributor

I'm afraid there's a conflict in test output now.

@geoffw0

geoffw0 commented Mar 30, 2020

Copy link
Copy Markdown
Contributor Author

Merged in master, fixed conflicts (which were limited to the .expected files).

@jbj

jbj commented Mar 30, 2020

Copy link
Copy Markdown
Contributor

The tests can be re-triggered and should pass when #3162 is merged.

@jbj jbj merged commit 7b7ff1f into github:master Mar 31, 2020
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