Re: [PATCH 15/19] RISC-V: avoid buffer underrun in subset parsing

Project / Subsystem

binutils / risc-v

Date

2026-04-29

Proposer

Jiawei <jiawei@iscas.ac.cn>

Source type

public_inbox

Consensus

Proposed

Sentiment

/10

Technical tradeoffs

  • None apparent; this is a straightforward security fix.

All attributes

project
binutils
subsystem
risc-v
patch_id
discussion_id
2f78a893-33c4-4c75-ae0c-4e2d83e3675e@iscas.ac.cn
source_type
public_inbox
title
Re: [PATCH 15/19] RISC-V: avoid buffer underrun in subset parsing
headline
RISC-V: avoid buffer underrun in subset parsing
tldr
The patch prevents a potential buffer underrun during RISC-V ISA extension parsing.
proposer
Jiawei <jiawei@iscas.ac.cn>
consensus
Proposed
outcome
ready
sentiment_score
technical_tradeoffs
  • None apparent; this is a straightforward security fix.
series_id
binutils:risc-v: avoid buffer underrun in subset parsing
series_role
reply
series_parts
[]
tags
  • binutils
  • risc-v
  • subset parsing
  • buffer underrun
  • security
bugzilla_url
date
2026-04-29T00:00:00.000Z

Re: [PATCH 15/19] RISC-V: avoid buffer underrun in subset parsing

This patch fixes a potential buffer underrun vulnerability in the RISC-V assembler’s ISA extension parsing logic. The code could potentially read before the beginning of the buffer when checking for the ‘p’ suffix on extension names. The patch adjusts the checks to ensure that the code never attempts to access memory outside of the allocated buffer, resolving the vulnerability.