Skip to content

fix(windows): report unexamined bytes in shortcut item lists - #12594

Merged
morluto merged 1 commit into
mainfrom
audit/windows-shortcut-header-idlist
Nov 20, 2026
Merged

morluto merged 1 commit into
mainfrom
audit/windows-shortcut-header-idlist

Conversation

@morluto

@morluto morluto commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Problem

A TerminalID could appear before the end of the declared LinkTargetIDList. The parser skipped the remaining list bytes and reported complete coverage.

Change

Report partial coverage at the first unexamined byte. Preserve the earlier items and resume parsing at the declared next section. Read the header and bounded item list through the shared BinaryReader, removing 13 direct reads from #11865. Microsoft LinkTargetIDList format

Validation

The new regression reported complete coverage on main. The fixed parser marks it partial and retains the next StringData field. All 139 focused tests passed, including compiled CLI and MCP, along with check:fast and whitespace checks.

@morluto
morluto enabled auto-merge (squash) November 20, 2026 00:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T00:03:05.252356Z 3716e2d PR opened
ℹ️ 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.

@morluto
morluto disabled auto-merge November 20, 2026 00:02
@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The changes appear safe to merge; no actionable defects were found.

Summary

Fixes shortcut coverage reports when bytes remain after an early TerminalID, while keeping earlier items and later sections readable.

  • Shortcut lists now report bytes left after an early end marker.

No actionable issues found. Available Git history shows no superseding fix; open-PR overlap was not verified. Tests were not rerun.

Reviews (1) · Last reviewed commit: "fix(windows): report unexamined bytes in..." · Reviewed by Greptile

@morluto
morluto enabled auto-merge (squash) November 20, 2026 00:04
@morluto
morluto merged commit a611944 into main Nov 20, 2026
40 checks passed
@morluto
morluto deleted the audit/windows-shortcut-header-idlist branch November 20, 2026 00:09
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant