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]

Re: [patch, libgfortran] PR24584 Segfault on null string in namelistinput file


Jerry DeLisle wrote:
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;
 }


Committed to mainline with new testcase pr24584.f90, as obvious.


Regards,

Jerry


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