[Bug fortran/99147] Sanitizer detects heap-use-after-free in gfc_add_flavor
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 19 19:21:50 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99147
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:af027826292351218785f893d1c42fe28ae3ed9f
commit r11-7303-gaf027826292351218785f893d1c42fe28ae3ed9f
Author: Harald Anlauf <anlauf@gmx.de>
Date: Fri Feb 19 20:21:27 2021 +0100
PR fortran/99147 - Sanitizer detects heap-use-after-free in gfc_add_flavor
Reverse order of conditions to avoid invalid read.
gcc/fortran/ChangeLog:
* symbol.c (gfc_add_flavor): Reverse order of conditions.
More information about the Gcc-bugs
mailing list