GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CLI/Library Upgrade: 2.25.5 by dilanbhalla · Pull Request #21928 · github/codeql

Conversation

@dilanbhalla

@dilanbhalla dilanbhalla commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
MathiasVP and others added 30 commits December 16, 2025 15:08
@MathiasVP
Binary: Add IR for 'dup' instructions.
4378da4
@MathiasVP
Binary: Extract field references.
79817dc
@MathiasVP
Binary: Add a FieldAddress instruction to the IR.
ecf00f9
@MathiasVP
Binary: Translate 'CilStfld' to IR.
03a907e
@MathiasVP
Binary: Translate 'CilLdfld' to IR.
85d9007
@bdrodes
Brodes/nested sizeof or operation in sizeof audit fixes (#310)
286fc27
* False positive fix regarding common type check idioms.

* Simplifying sizeof query output messages, and making both consistent with each other.
dilanbhalla
Merge branch 'main' of https://github.com/microsoft/codeql into auto/…
4919660
…sync-main-pr
@dilanbhalla @elbiazo @bdrodes
Porting over PR adding bad wchar query #226 (#229)
9d5a797
* adding bad wchar query

* Update BadWchar.ql

Fixing description

---------

Co-authored-by: elbiazo <[email protected]>
Co-authored-by: Ben Rodes <[email protected]>
dilanbhalla
Merge branch 'main' of https://github.com/microsoft/codeql into auto/…
95c7a7c
…sync-main-pr
@MathiasVP
C#: Fix a merge conflict.
6a1f66b
@MathiasVP
C#: Fix another merge conflict.
636d726
@dilanbhalla
Merge pull request #311 from microsoft/fix-merge-conflict-inTaintedPa…
c9b45fd
…thQuery

C#: Fix two merge conflicts
dilanbhalla
Merge branch 'main' of https://github.com/microsoft/codeql into auto/…
10b13f2
…sync-main-pr
@MathiasVP
C#: Fix an incorrect merge conflict resolution.
9d04abb
@MathiasVP
C#: Drive-by fix. The 'GOOD' test was not actually
fa9f02a
GOOD since it didnt normalize the path after the
concat. The logic added in 4dfa886
was flawed since `Path.Combine(x, y)` is not a normalized
path even when `x` is normalized (since `y` may contain
`..` segments).
@bdrodes
Minor fix to the query that should not alter prior semantics. Previou…
55a3dae
…sly checking a type checker pattern and checking an operand is a DerivedType or a PointerType, but pointer derives from DerivedType, so the PointerType check is unnecessary.
@MathiasVP
Merge pull request #313 from microsoft/brodes/nested_sizeof_or_operat…
676c6b2
…ion_in_sizeof_fix

Minor fix to the query that should not alter prior semantics. Previou…
@MathiasVP
Merge branch 'main' into fix-merge-conflict-inTaintedPathQuery-2
f9e1165
dilanbhalla
Merge branch 'main' of https://github.com/microsoft/codeql into auto/…
47a0d22
…sync-main-pr
@dilanbhalla
Merge pull request #312 from microsoft/fix-merge-conflict-inTaintedPa…
626127b
…thQuery-2

C#: Fix an incorrect merge conflict resolution.
dilanbhalla
Merge branch 'main' of https://github.com/microsoft/codeql into auto/…
15325a7
…sync-main-pr
@ropwareJB
Massaging cpp leap year AP1
aba87c5
@ropwareJB
Break out query into subcomponents, comments
e63e19b
@ropwareJB
init precise version
7b5163c
@ropwareJB
Test case qlref
7649370
@ropwareJB
Use Bens version + Autoformat
c7a6543
@ropwareJB
Refactoring common class between dataflow
f6f63cb
@ropwareJB
Hashcons definition of exprEq_propertyPermissive
50e182e
@bdrodes
Misc. updates. Removed the ignorable function mechanic, and switched …
ca9f66c
…to a more precise ignorable operation analysis. Ignorable operations that flow to a possible source also invalidate that source. Also added a root source finder to get the earliest source if many exist. Modified the leap year checker finder to use a new dataflow mechanic that flows from a YearFieldAccess.
@ropwareJB
Code Commenting
ec2e5f7
MathiasVP and others added 12 commits May 5, 2026 16:48
@MathiasVP
Merge pull request #356 from microsoft/powershell-reverse-child-recur…
d52f413
…se-direction

PS: Optimize `ChildMapping` using forward+reverse pruning
@ropwareJB
explicitly add iac to workspace
c99b4de
@gfs
Rename ConditionKind to BinaryConditionKind to resolve name conflict …
0bb42f7
…with ConditionKind definition which was added in upstream base QL.
@gfs
Merge pull request #357 from microsoft/gfs/RenameBinaryPackConditionKind
555456a
Rename ConditionKind to BinaryConditionKind to resolve name conflict with ConditionKind definition which was added in upstream base QL.
@ropwareJB
Merge branch 'main' into jb1/iac-qlpack
dea11e1
@ropwareJB
Merge pull request #359 from microsoft/jb1/iac-qlpack
3f4d327
Explicitly add iac to workspace
@gfs
Add parameter type signatures for IL and JVM methods (#358)
a3cc253
* Add parameter type signatures for IL methods/calls

Extract and propagate parenthesized parameter type signatures to enable overload-precise identification and matching of methods and unresolved call targets.

- Extractor: ILExtractor now emits il_method_param_signature and il_call_target_param_signature tuples.
- DB schema: Added il_method_param_signature and il_call_target_param_signature to semmlecode.binary.dbscheme.
- QL API/AST: Exposed/getters for param signatures across CilInstructions, IR, InstructionSig, TranslatedElement/Function/Instruction and transform layers so signatures flow through translation.
- Translated implementations: TranslatedCilMethod and relevant translated call/new-object logic return the extracted signatures; non-CIL backends return wildcards where appropriate.
- VulnerableCalls: Expanded the vulnerableCallModel and related predicates to include paramSignature and updated matching logic to accept exact signatures or wildcard '*'.
- Models: Updated example YAML models to include a '*' paramSignature for existing entries.

This change improves precision when matching overloaded methods for analyses such as vulnerable-call detection.

* Add method param signatures and JVM stack metadata

Expose a getParamSignature API on InstructionSig (and the TransformInstruction implementation) to return parenthesized parameter-type signatures (e.g. "(System.String,System.Int32)"). Extend the extraction DB schema with il_method_param_signature and il_call_target_param_signature to enable overload-precise method identification, and add jvm_stack_height and jvm_stack_slot tables to record JVM stack heights and map stack slots to producer instructions to simplify stack-based dataflow analysis.

* Include same-assembly method definitions in vulnerable method closure

For root cause mode analysis, where the vulnerable methods being traced are
defined in the same binary being analyzed (not referenced cross-assembly),
getAVulnerableMethod needs a base case that matches method definitions by
their fully-qualified name and parameter signature.

Previously, only cross-assembly calls via ExternalRefInstruction were matched
as the base case. Intra-assembly calls are handled by the existing transitive
getStaticTarget() clause, but the closure never started because the base case
only found external ref call sites.

The new clause matches methods defined in the current binary against the model,
respecting the paramSignature field (including wildcard '*'). For standard
cross-assembly analysis this is a no-op since the model methods won't be
defined in the binary being analyzed.

Co-authored-by: Copilot <[email protected]>

* Sync JVM extractor dbscheme with ql lib

The ql lib dbscheme was updated with il_method_param_signature,
il_call_target_param_signature, jvm_stack_height, and jvm_stack_slot tables
but the JVM extractor's copy was not updated. This causes a schema mismatch
when building a JVM database and then running the binary-ql queries against it.

Co-authored-by: Copilot <[email protected]>

* Add parameter type signature extraction for JVM bytecode

The CIL extractor already emits il_method_param_signature and
il_call_target_param_signature for overload-precise method matching.
This commit adds the same capability to the JVM bytecode extractor.

JVM extractor changes:
- ParseParamSignature: converts JVM descriptors (e.g. '(Ljava/lang/Object;JJ)V')
  to human-readable signatures (e.g. '(Object,long,long)')
- ExtractMethod: emits il_method_param_signature for method definitions
- ExtractMethodRef: emits il_call_target_param_signature for call sites

QL library changes:
- JvmMethod: add getParamSignature() backed by il_method_param_signature
- JvmInvoke: add getParamSignature() backed by il_call_target_param_signature
- TranslatedJvmInvoke: wire getExternalParamSignature to instr.getParamSignature()
- TranslatedJvmFunction: use method.getParamSignature() instead of wildcard '*'

VulnerableCalls.qll:
- VulnerableMethodCall: handle case where extRef lacks param signature
  (backwards compat for databases built before this change)
- Root cause base case: handle functions with wildcard param signature

Co-authored-by: Copilot <[email protected]>

* Fix JVM param signature to use JVM-specific dbscheme table

il_call_target_param_signature references @il_instruction which is incompatible
with JVM's @jvm_instruction type. Add jvm_call_target_param_signature table for
JVM call target signatures and update the extractor and QL to use it.

Also sync all extractor dbschemes (JVM and CIL) with the canonical ql/lib copy.

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
@chanel-y
Update ApprovedCipherMode query and tests
6e238a7
Co-authored-by: Copilot <[email protected]>
@chanel-y
predicate -> abstract class, updated inline expectations
a5e5379
@chanel-y
update to use .getValue()
b18703e
@chanel-y
Merge pull request #361 from microsoft/approved-cipher-mode-changes
8635eaf
Update ApprovedCipherMode query and tests
Dilan Bhalla
merge upstream 2.25.5
c1ca997
Copilot AI review requested due to automatic review settings June 1, 2026 22:02
@dilanbhalla
dilanbhalla requested review from a team as code owners June 1, 2026 22:02
Copilot AI reviewed Jun 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dilanbhalla

dilanbhalla commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Accidental PR, apologies. Closing now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dilanbhalla dilanbhalla closed this Jun 1, 2026
@github-actions github-actions Bot added C# JS C++ documentation Java Go labels Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

C# C++ documentation Go Java JS

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@dilanbhalla @MathiasVP @bdrodes @ropwareJB @gfs @chanel-y @LWSimpkins
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.