This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, libgfortran] PR24584 Segfault on null string in namelist inputfile


I will commit the following patch and test case attached as obvious this evening unless there are objections. (Reviewed with Paul Thomas off list)

Regards,

Jerry

Index: list_read.c
===================================================================
--- list_read.c	(revision 106012)
+++ list_read.c	(working copy)
@@ -134,6 +134,7 @@
     free_mem (saved_string);

   saved_string = NULL;
+  saved_used = 0;
 }

Attachment: pr24584.f90
Description: application/extension-f90


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]