Re: [PATCH] ld/pdb: Terminate the string list in S_ENVBLOCK

Project / Subsystem

binutils / ld/pdb

Date

2026-10-05

Proposer

Mark Harmstone <mark@harmstone.com>

Source type

public_inbox

Consensus

Under Review

Sentiment

—/10

Technical tradeoffs

  • • Fixing the PDB string list termination relies on reverse-engineering or observed behavior due to the lack of a formal specification, potentially leading to compatibility issues with other PDB tools.

All attributes

project
binutils
subsystem
ld/pdb
patch_id
—
discussion_id
6602570a-365e-4df1-a92e-e9476a9186cd@harmstone.com
source_type
public_inbox
title
Re: [PATCH] ld/pdb: Terminate the string list in S_ENVBLOCK
headline
ld/pdb: Terminate the string list in S_ENVBLOCK
tldr
Mark Harmstone asks Oleg Tolmatcev to verify if a PDB string list termination issue observed in llvm-pdbutil is also present in Microsoft's cvdump.exe.
proposer
Mark Harmstone <mark@harmstone.com>
consensus
Under Review
outcome
under_review
sentiment_score
—
technical_tradeoffs
  • • Fixing the PDB string list termination relies on reverse-engineering or observed behavior due to the lack of a formal specification, potentially leading to compatibility issues with other PDB tools.
series_id
—
series_role
reply
series_parts
[]
tags
  • • pdb
  • • linker
  • • debugging
  • • codeview
  • • specification
bugzilla_url
—
date
2026-10-05T00:00:00.000Z

Re: [PATCH] ld/pdb: Terminate the string list in S_ENVBLOCK

Mark Harmstone is reviewing patches related to terminating string lists in S_ENVBLOCK symbols within the PDB format. Oleg Tolmatcev has provided an explanation and a link to LLVM’s implementation, which explicitly terminates the list with a zero byte. Harmstone points out the lack of a formal PDB specification and asks Tolmatcev to confirm if the observed behavior is also present in Microsoft’s cvdump.exe to ensure the fix is correct and not specific to LLVM’s implementation.