Landing: 8faef9e741d5
Project / Subsystem
gcc / cobol
Date
2026-09-17
Author
Xavier Del Campo Romero
Commit
8faef9e741d5e11e4146067a4bbbe1fdfb100178
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 8faef9e741d5e11e4146067a4bbbe1fdfb100178
- source_type
- github
- headline
- Cobol: Prevent null-termination of original strings in CBL_CREATE_FILE
- tldr
- Fixes potential UB in CBL_CREATE_FILE by not modifying original strings.
- author
- Xavier Del Campo Romero
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • libgcobol
- • bugfix
- • stability
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-17T00:00:00.000Z
The CBL_CREATE_FILE.cbl implementation has been corrected to avoid null-terminating the original string passed by the caller. This prevents undefined behavior, particularly when the supplied string is a literal or otherwise immutable, ensuring greater stability.