Landing: 524847fec983
Project / Subsystem
gcc / libstdc++
Date
2026-10-01
Author
Jonathan Wakely
Commit
524847fec983eaedca147840ce46fcbb0cd38952
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 524847fec983eaedca147840ce46fcbb0cd38952
- source_type
- github
- headline
- libstdc++: Fix std::from_chars to not read past end of input [PR127666]
- tldr
- Corrects std::from_chars to prevent out-of-bounds reads from the input buffer.
- author
- Jonathan Wakely
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • safety
- • from_chars
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-10-01T00:00:00.000Z
The std::from_chars function for floating-point conversions has been fixed to avoid reading past the end of the input character sequence. This resolves potential out-of-bounds reads, improving the safety and correctness of string-to-float conversions. A new test case has been added to verify this fix.