[PATCH v2] x86/disasm: do not use format string without format specifiers

Project / Subsystem

binutils / x86/disasm

Date

2026-05-24

Proposer

Will Hawkins <hawkinsw@obs.cr>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • The patch adds format specifiers to existing calls, ensuring that the code remains functional and secure.

All attributes

project
binutils
subsystem
x86/disasm
patch_id
discussion_id
20260524030619.1313131-1-hawkinsw@obs.cr
source_type
public_inbox
title
[PATCH v2] x86/disasm: do not use format string without format specifiers
headline
x86/disasm: Do not use format string without format specifiers
tldr
The x86 disassembler is updated to avoid using format strings without format specifiers, fixing a build failure with -Werror=format-security.
proposer
Will Hawkins <hawkinsw@obs.cr>
consensus
Proposed
outcome
proposed
sentiment_score
technical_tradeoffs
  • The patch adds format specifiers to existing calls, ensuring that the code remains functional and secure.
series_id
series_role
standalone
series_parts
[]
tags
  • x86
  • disassembler
  • format string
  • security
  • build failure
bugzilla_url
date
2026-05-24T00:00:00.000Z

[PATCH v2] x86/disasm: do not use format string without format specifiers

This patch modifies the x86 disassembler to avoid using format strings without format specifiers, which fixes a build failure when compiling with -Werror=format-security on i686. The patch addresses issue PR binutils/34168.