Skip to content

fix(dotnet): reject invalid UTF-8 metadata version strings - #9027

Closed
ShuaixinHuang wants to merge 6 commits into
morluto:mainfrom
ShuaixinHuang:codex/fix-managed-metadata-version-utf8
Closed

ShuaixinHuang wants to merge 6 commits into
morluto:mainfrom
ShuaixinHuang:codex/fix-managed-metadata-version-utf8

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reject an invalid UTF-8 metadata root version with an invalid-metadata-root issue at metadata.version. Preserve valid version text and existing NUL padding handling.

Validation

The malformed byte regression failed before the change. All 15 focused managed metadata tests and formatting checks passed on Windows with existing dependencies and synthetic fixtures. The branch includes the shared test baseline from #9009. Full-tree CI remains pending.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review November 5, 2026 15:05
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-05T15:05:59.833961Z
We couldn’t complete this review. Comment @codex review to try again.
304e82f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issues were found.

Summary

Rejects malformed UTF-8 in the metadata root version before decoding it.

  • Managed metadata versions reject invalid UTF-8 at the version field.
  • Tests now match the current capture and tool-output shapes.

No actionable bugs or security issues were found. Tests were not run during this review. Supersession could not be checked because GitHub authentication was unavailable.

Reviews (1) · Last reviewed commit: "fix(dotnet): reject invalid UTF-8 metada..." · Reviewed by Greptile

@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants