New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update go libraries to 55e052a #11002
base: main
Are you sure you want to change the base?
Conversation
…mmaries Equivalent of github#8628
Equivalent of github#9210
Corresponds to github#9270
Corresponds to github#7260, though some of those changes had already been made.
Corresponds to github#8870
| * For more information, see | ||
| * [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/). | ||
| */ | ||
| predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) { |
Check warning
Code scanning / CodeQL
Missing QLDoc for parameter Warning
| @@ -139,14 +146,14 @@ predicate sourceModel( | |||
| row.splitAt(";", 4) = signature and | |||
| row.splitAt(";", 5) = ext and | |||
| row.splitAt(";", 6) = output and | |||
| row.splitAt(";", 7) = kind | |||
| exists(string k | row.splitAt(";", 7) = k and getKind(k, kind, generated)) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| exists(string k | row.splitAt(";", 7) = k and getKind(k, kind, generated)) | |
| getKind(row.splitAt(";", 7), kind, generated) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to leave it like this so that it's the same as the other copies of ExternalFlow.qll. That will make it easier to update to the other copies when we get around to it.
| @@ -158,22 +165,22 @@ predicate sinkModel( | |||
| row.splitAt(";", 4) = signature and | |||
| row.splitAt(";", 5) = ext and | |||
| row.splitAt(";", 6) = input and | |||
| row.splitAt(";", 7) = kind | |||
| exists(string k | row.splitAt(";", 7) = k and getKind(k, kind, generated)) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| exists(string k | row.splitAt(";", 7) = k and getKind(k, kind, generated)) | |
| getKind(row.splitAt(";", 7), kind, generated) |
| @@ -185,14 +192,14 @@ predicate summaryModel( | |||
| row.splitAt(";", 5) = ext and | |||
| row.splitAt(";", 6) = input and | |||
| row.splitAt(";", 7) = output and | |||
| row.splitAt(";", 8) = kind | |||
| exists(string k | row.splitAt(";", 8) = k and getKind(k, kind, generated)) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| exists(string k | row.splitAt(";", 8) = k and getKind(k, kind, generated)) | |
| getKind(row.splitAt(";", 8), kind, generated) |
| @@ -14,6 +14,10 @@ private module FlowSummaries { | |||
| private import semmle.go.dataflow.FlowSummary as F | |||
| } | |||
|
|
|||
| class SummarizedCallableBase = Callable; | |||
|
|
|||
| DataFlowCallable inject(SummarizedCallable c) { result.asCallable() = c } | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This PR updates the go libraries to 55e052a. Note that I haven't ported #8898 because I'm unsure if it will work with the go library.