-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Java: convert sinks to CSV #5557
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
Conversation
deb60b6 to
ece8b5b
Compare
ece8b5b to
c096790
Compare
c096790 to
1df7db2
Compare
This reverts commit 87d42b0.
1df7db2 to
351f35d
Compare
aschackmull
left a comment
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.
As an overall comment, we're getting a bunch of opaque sink identifiers, which really could use qldoc. The best way to add qldoc to these identifiers is probably to introduce the convention that all references to sinkNode(n, "some-sink-id") occur as charpreds of simple wrapper classes. E.g.:
class XssSink extends DataFlow::Node {
XssSink() { sinkNode(this, "xss") }
}
This allows us a place to introduce a nice QL class name and suitable qldoc that explains what the sink is.
java/ql/src/semmle/code/java/frameworks/google/GoogleHttpClientApi.qll
Outdated
Show resolved
Hide resolved
This reverts commit 3e53484.
| /** | ||
| * A sink that represents a URL opening method call, such as a call to `java.net.URL.openConnection()`. | ||
| */ | ||
| private class URLOpenSink extends DataFlow::Node { |
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.
| private class URLOpenSink extends DataFlow::Node { | |
| private class UrlOpenSink extends DataFlow::Node { |
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 don't mind changing this to UrlOpenSink, but a couple of lines above we already have HTTPStringToURLOpenMethodFlowConfig, so it would look a bit strange, wouldn't it?
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.
Right, that ought to be renamed to HttpStringToUrlOpenMethodFlowConfig.
Differences jobDifferences jobDifferences job