]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: Change some dubious sprintf() calls to xasprintf in genapi.cc
authorBob Dubner <rdubner@symas.com>
Tue, 1 Apr 2025 21:01:59 +0000 (17:01 -0400)
committerRobert Dubner <rdubner@symas.com>
Tue, 1 Apr 2025 21:22:22 +0000 (17:22 -0400)
commitf63ec684a18fbc7d37cd74e062404bb518dadc9b
treeb81ac0a1c4beb21eb5c94fc10257740693d32bcf
parent42b2fc3fc9c06c174ec4d2c0566f54b624bc70b5
cobol: Change some dubious sprintf() calls to xasprintf in genapi.cc

These calls were into fixed-length arrays that might be too small.

gcc/cobol

* genapi.cc: (section_label): Use xasprintf() instead of sprintf().
(paragraph_label): Likewise.  (leave_procedure): Likewise.
(find_procedure): Likewise.  (parser_goto): Likewise.
(parser_enter_file): Likewise.
gcc/cobol/genapi.cc