Landing: b7fbc9e1a4eb
Project / Subsystem
gcc / middle-end
Date
2026-08-24
Author
Philipp Tomsich
Commit
b7fbc9e1a4ebb2f7f52dff4b8a57309847aaa90d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- middle-end
- patch_id
- —
- commit_hash
- b7fbc9e1a4ebb2f7f52dff4b8a57309847aaa90d
- source_type
- github
- headline
- Fix buffer overflow in synth_mult for AVR multiplication.
- tldr
- Corrects a buffer overflow in `synth_mult` when generating code for AVR constant multiplication.
- author
- Philipp Tomsich
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • middle-end
- • avr
- • bugfix
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-24T00:00:00.000Z
This commit addresses a buffer overflow vulnerability in the synth_mult function, which is used for generating code for constant multiplication on the AVR target. The overflow occurred when transient arrays op and log were written beyond their allocated bounds. This patch resizes these arrays to accommodate the appended operation, preventing data corruption and ensuring correct compilation for specific AVR multiplications.