Skip to content

fix: match correct try block markers in CFG#205

Merged
MatthieuDartiailh merged 3 commits into
MatthieuDartiailh:mainfrom
P403n1x87:fix/try-block-across-jump-target
Jun 3, 2026
Merged

fix: match correct try block markers in CFG#205
MatthieuDartiailh merged 3 commits into
MatthieuDartiailh:mainfrom
P403n1x87:fix/try-block-across-jump-target

Conversation

@P403n1x87
Copy link
Copy Markdown
Contributor

Fix an AssertionError in stack-size computation when a single exception region is split into multiple TryBegin instances sharing one handler (as produced by bytecode-rewriting tools that wrap a whole function body in a single handler). TryBegin/TryEnd are now matched on the handler block rather than on TryBegin identity.

Fix an ``AssertionError`` in stack-size computation when a single exception
region is split into multiple ``TryBegin`` instances sharing one handler (as
produced by bytecode-rewriting tools that wrap a whole function body in a
single handler). ``TryBegin``/``TryEnd`` are now matched on the handler block
rather than on ``TryBegin`` identity.
@P403n1x87
Copy link
Copy Markdown
Contributor Author

@MatthieuDartiailh I think this is late to the 0.18.0 party 🙁 Could we have a 0.18.1 once this is merged? 🙏

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.45%. Comparing base (e8cfa41) to head (7969a6b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #205   +/-   ##
=======================================
  Coverage   95.45%   95.45%           
=======================================
  Files           7        7           
  Lines        2135     2135           
  Branches      459      459           
=======================================
  Hits         2038     2038           
  Misses         54       54           
  Partials       43       43           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Owner

@MatthieuDartiailh MatthieuDartiailh left a comment

Choose a reason for hiding this comment

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

LGTM

Let me know when this is ready and I will release ASAP

Comment thread doc/changelog.rst Outdated
@P403n1x87 P403n1x87 marked this pull request as ready for review June 3, 2026 13:44
Co-authored-by: Matthieu Dartiailh <marul@laposte.net>
@P403n1x87
Copy link
Copy Markdown
Contributor Author

@MatthieuDartiailh this should now be ready 🙇

@P403n1x87 P403n1x87 force-pushed the fix/try-block-across-jump-target branch from b76bb2d to 7969a6b Compare June 3, 2026 13:48
@MatthieuDartiailh MatthieuDartiailh merged commit 570e2b8 into MatthieuDartiailh:main Jun 3, 2026
10 checks passed
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