Repository navigation
SRM: accept legal Portable PDB sequence-point boundary values - #136403
Merged
jkoritzinsky merged 2 commits intoOct 24, 2026
Merged
jkoritzinsky merged 2 commits into
jkoritzinsky merged 2 commits into
Conversation
Co-authored-by: Copilot App <[email protected]>
Validate initial and delta-encoded line numbers against the 29-bit Portable PDB range while excluding the hidden-line sentinel. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-reflection-metadata |
14 tasks done
jkotas
approved these changes
Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fix Portable PDB sequence-point reader boundary checks:
0x1fffffff, while rejecting the reserved hidden-line value when used as an ordinary coordinate.Includes boundary and malformed-input regressions. Related to the sequence-point work tracked in #135314; this is a separate library change independently based on main.
Existing workarounds
Roslyn caps columns at
ushort.MaxValue - 1, explicitly citing this SRM off-by-one error. That cap is a compatibility workaround, not a special full-row sentinel.Managed-ilasm source mapping #136396 likewise defaults omitted end columns to 65534 for compatibility with existing readers; see its pinned implementation. That PR preserves explicit legal maximum columns rather than clamping them and is not stacked on this change.
Validation already run
The isolated branch's SRM source subtree was verified identical to the supplied corrected build. Reused that build rather than performing another runtime baseline build.
Results: focused PortablePdbBuilderTests 52 passed, 0 failed/skipped; full net11 suite 937 passed, 0 failed, 1 existing skip (938 total). The runtime reader hash matched the product reader. net481 was not rerun during branch splitting/publication. No new test runs were performed for PR publication.
Note
This pull request description and code changes were prepared with GitHub Copilot assistance.