Go: Debugging queries #120
Merged
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.
This pull request introduces significant updates to the Go CodeQL library, focusing on debugging and security analysis. Key changes include updates to dependencies, the addition of new query modules for identifying sources and sinks, and improvements to partial path exploration for debugging. These changes enhance the library's ability to detect security vulnerabilities and improve debugging capabilities.
Dependency Updates:
go/lib/codeql-pack.lock.yml
, includingcodeql/dataflow
,codeql/go-all
,codeql/typetracking
, and others, to ensure compatibility with the latest features and fixes.New Debugging Features:
AllSinks
class ingo/lib/ghsl/Sinks.qll
to define a comprehensive list of sinks for various security vulnerabilities (e.g., SQL injection, command injection).go/src/debugging/Sinks.ql
query to list all known sinks with their types for debugging purposes.AllSources
andLocalSources
classes ingo/lib/ghsl/Utils.qll
to identify remote and local sources.go/src/debugging/Sources.ql
query to list all known sources categorized by threat models.Partial Path Analysis:
go/src/debugging/PartialPathsFromSink.ql
andgo/src/debugging/PartialPathsFromSource.ql
queries to enable partial path analysis, helping identify data flow between sources and sinks for debugging purposes. [1] [2]Suite Configuration:
go/src/suites/go-debugging.qls
to define a debugging suite for the CodeQL queries, focusing on high-precision and debugging-related problems.