[Bug fortran/109105] New: Error-prone format string building in resolve.cc
roland.illig at gmx dot de
gcc-bugzilla@gcc.gnu.org
Sat Mar 11 19:56:27 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109105
Bug ID: 109105
Summary: Error-prone format string building in resolve.cc
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Keywords: translation
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: roland.illig at gmx dot de
Target Milestone: ---
The function resolve_operator constructs a format string and then passes it to
gfc_error. This approach is wrong, and if a translator such as me makes a typo
in the translation, GCC can crash.
Instead of jumping to bad_op, each error must be handled individually, and the
messages to be translated must be marked as having format gcc-internal-format
or gfc-internal-format, not c-format.
More information about the Gcc-bugs
mailing list