[Bug fortran/87945] [9 Regression] ICE in var_element, at fortran/decl.c:281

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 18 00:10:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87945

--- Comment #8 from kargl at gcc dot gnu.org ---
(In reply to David Binderman from comment #6)
> Not sure this is related, but I tried compiling ./gfortran.dg/pr87945_1.f90
> on an asan build of gcc trunk revision 267200 and got this:
> 

I think it's irrelevant to my patch.  Fixing the ICE
simply allows one to get to where the sanitizers get
upset.

When find_inquiry_ref() is used to a inquiry reference,
it nullifies a pointer.  If it is called twice on the
same expression, then this might be why there is a
use after free.


More information about the Gcc-bugs mailing list