Skip to content

Conversation

kg
Copy link
Member

@kg kg commented Sep 11, 2025

Fixes JIT\jit64\verif\sniff\fg\ver_fg_13

Call badcode instead of asserting for certain types of invalid branches
@kg kg marked this pull request as ready for review September 11, 2025 17:09
@kg kg requested review from BrzVlad and janvorli as code owners September 11, 2025 17:09
@Copilot Copilot AI review requested due to automatic review settings September 11, 2025 17:09
Copy link
Contributor

@Copilot 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 adds validation to detect relocations pointing to invalid targets in the CoreCLR interpreter compiler. The changes improve error handling by replacing assertions with proper error reporting when encountering invalid branch targets or offsets.

  • Adds validation for relocation targets with invalid native offsets
  • Replaces assertions with BADCODE error reporting for better diagnostics
  • Ensures branch targets are properly validated before use

@kg kg merged commit 93b7467 into dotnet:main Sep 11, 2025
96 of 98 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants