Skip to content

Java: Debugging queries#114

Merged
GeekMasher merged 6 commits intomainfrom
java/debugging-queries
Apr 15, 2025
Merged

Java: Debugging queries#114
GeekMasher merged 6 commits intomainfrom
java/debugging-queries

Conversation

@GeekMasher
Copy link
Contributor

@GeekMasher GeekMasher commented Apr 15, 2025

Adding various utility predicates and classes for the Java library, this PR enhances the debugging capabilities by introducing new queries for partial paths from sources and sinks.

Enhancements to utility predicates and classes:

  • java/lib/ghsl.qll: Added imports for ghsl.LocalSources and ghsl.Utils.
  • java/lib/ghsl/Utils.qll: Introduced utility predicates and classes, such as findByLocation, isCallable, checkSource, LocalSources, AllSources, and AllSinks.

Debugging improvements:

Dependency updates:

  • java/lib/qlpack.yml: Updated to include githubsecuritylab/codeql-java-extensions as a dependency.

Configuration updates:

Copilot AI review requested due to automatic review settings April 15, 2025 10:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR aims to enhance Java debugging queries by adding the CodeQL Java extensions.

  • Added a dependency for githubsecuritylab/codeql-java-extensions at version 0.2.1 in the qlpack configuration file.
Files not reviewed (7)
  • java/lib/ghsl.qll: Language not supported
  • java/lib/ghsl/Utils.qll: Language not supported
  • java/src/debugging/PartialPathsFromSink.ql: Language not supported
  • java/src/debugging/PartialPathsFromSource.ql: Language not supported
  • java/src/debugging/Sinks.ql: Language not supported
  • java/src/debugging/Sources.ql: Language not supported
  • java/src/suites/java-debugging.qls: Language not supported

@GeekMasher GeekMasher requested a review from felickz April 15, 2025 10:42
Copy link
Contributor

@felickz felickz left a comment

Choose a reason for hiding this comment

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

Super helpful to have the fromSource / fromSink exploration!

Like the idea of a /debug/ folder/suite!

@GeekMasher GeekMasher merged commit de4db29 into main Apr 15, 2025
15 checks passed
@GeekMasher GeekMasher deleted the java/debugging-queries branch April 15, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants