[Committed] PR fortran/88357 -- NULL pointer dereferences

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Dec 9 03:14:00 GMT 2018


Invalid code can cause the gfortran to dereference NULL pointers.
The patch fixes this.

2018-12-08  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/88357
	* class.c (insert_component_ref): Check for NULL pointer and 
	previous error message issued.
	* parse.c (parse_associate): Check for NULL pointer.
	* resolve.c (resolve_assoc_var): Check for NULL pointer.

2018-12-08  Steven G. Kargl  <kargl@gcc.gnu.org>

	* gfortran.dg/pr88357_1.f90: New test.
	* gfortran.dg/pr88357_2.f90: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: z_pr88357.diff
Type: text/x-diff
Size: 2815 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20181209/342b2699/attachment.bin>


More information about the Fortran mailing list