GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — C++: Missing return-value check for scanf-like functions #1076 by d10c · Pull Request #10033 · github/codeql Conversation
Contributor
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThese keep getting added, by the Makefile extension I believe. …le was initialized, as in real world cases we haven't seen it done safely.
Comment on lines
+1
to
+19
Check warningCode scanning / CodeQL Missing security metadata
This query file is missing a `@tag security`.
d10c
force-pushed
the
missing-check-scanf
branch
from
d999e0e to
3e71ef2
Compare
geoffw0
reviewed
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Also, include a couple of other test cases for related corner cases, namely, to catch stores-before-uses and another case of aliasing. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
geoffw0
reviewed
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Still needs to be tested further. But currently returns results on the `unbit/uwsgi` database: see https://github.com/github/semmle-code/actions/runs/2868369365 Uh oh!
There was an error while loading. Please reload this page. The problem with the current query is that instructions can be in a cycle, so the scanf argument itself is viewed as an unguarded use. The other problem is that this query is slow on a real database, like unbit/uwsgi. Particularly during the step called: ScanfOutput::getASubsequentSameValuedInstruction#dispred#f0820431#ff#antijoin_rhs#2 Perhaps it can be optimized further. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. To quiet the QL-on-QL "implicit this" warnings. Offender: getASameValuedInstruction This reduced its runtime on unbit/uwsgi from 1+min to 10ms. Re-running MRVA top 100, and it still looks like there are a few DBs on which it takes over 30 minutes to run this query. So further optimization is warranted. The query is now shorter, simpler, more correct, and after some local testing, faster. MRVA top 100 and DCA runs pending.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |