Landing: 3f6fbace7b38
Project / Subsystem
gcc / ada
Date
2026-05-18
Author
Steve Baird
Commit
3f6fbace7b3861e34bd8c10fce5b29a05e871120
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 3f6fbace7b3861e34bd8c10fce5b29a05e871120
- source_type
- github
- headline
- Ada unbounded holder no longer dereferences null pointers
- tldr
- GCC's Ada runtime for `Bounded_Indefinite_Holders` now checks for empty holders before dereferencing, preventing null pointer errors.
- author
- Steve Baird
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • runtime
- • bugfix
- • null-pointer
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-18T00:00:00.000Z
A null pointer dereference in the Adjust procedure for Ada.Containers.Bounded_Indefinite_Holders.Holder has been fixed. Previously, the procedure would attempt to copy an element’s value without checking if the holder was empty, leading to a crash if the element didn’t exist. The fix introduces a check to ensure the holder is not empty before attempting to access its element, improving runtime stability.