[committed] fortran/trans-openmp.cc: Use the correct member in gfc_omp_namelist [PR118745]

Tobias Burnus tburnus@baylibre.com
Wed Feb 5 07:52:27 GMT 2025


Found using UBSAN - and thanks to Martin for running it with UBSAN
and reporting it!

append_args and adjust_args can be easily confused being spelled
rather similarly and being used in the same code. Still, it makes
sense to use the right list...

(It seems as if the pointer dereferencing actually does not happen,
i.e. in that sense the code is "fine" as it does not crash. Still,
having NULL + some offset is not the best pointee.)

Committed asr15-7366-g3a5882707df50e Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250205/8f00fbd2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: committed.diff
Type: text/x-patch
Size: 1089 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250205/8f00fbd2/attachment.bin>


More information about the Fortran mailing list