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

Jerry DeLisle jvdelisle@verizon.net
Sun Oct 30 19:54:00 GMT 2005


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;
  }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr24584.f90
Type: application/x-extension-f90
Size: 447 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051030/5210993c/attachment.bin>


More information about the Fortran mailing list