| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Adds shared CFG validation ensuring language-supplied abrupt completions originate from their associated in/additional node.
Changes:
| File | Description |
|---|---|
| shared/controlflow/codeql/controlflow/ControlFlowGraph.qll | Implements and registers the consistency check. |
| python/ql/test/library-tests/ControlFlow/successors/InvalidAbruptCompletionOrigin.ql | Adds Python validation. |
| python/ql/test/library-tests/ControlFlow/successors/InvalidAbruptCompletionOrigin.expected | Records expected Python results. |
| java/ql/test/library-tests/controlflow/basic/InvalidAbruptCompletionOrigin.ql | Adds Java validation. |
| java/ql/test/library-tests/controlflow/basic/InvalidAbruptCompletionOrigin.expected | Records expected Java results. |
| csharp/ql/test/library-tests/controlflow/graph/InvalidAbruptCompletionOrigin.ql | Adds C# validation. |
| csharp/ql/test/library-tests/controlflow/graph/InvalidAbruptCompletionOrigin.expected | Records expected C# results. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
|
All of the added qltests and corresponding expected files are unnecessary, since this is a consistency query. |
Sorry, something went wrong.
|
Sorry, this was meant to be a draft. It is currently completely copilot, so I need to look it over. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
This intentionally does not inspect the shared library's combined private beginAbruptCompletion, whose unmatched final catch-clause completion legitimately originates at isAfterValue.
Motivation
This follows the consistency-check suggestion from review of #22380: #22380 (comment). The change is independent of #22380 and contains no Python-specific CFG behavior change.
Validation
No invalid abrupt-completion origins or unrelated expected-output churn were found in the three consuming languages.