bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: [PATCH] uninitialized variable in parse_file_seq]


From: Dmitry Goncharov
Subject: address@hidden: [PATCH] uninitialized variable in parse_file_seq]
Date: Sat, 16 Dec 2017 23:51:37 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

glob/glob.c touches this variable when the user passes a pattern with a
trailing slash to wildcard.

regards, Dmitry


diff --git a/src/read.c b/src/read.c
index db1a42d..2e44d5e 100644
--- a/src/read.c
+++ b/src/read.c
@@ -3065,6 +3065,7 @@ parse_file_seq (char **stringp, unsigned int size, int 
stopmap,
   glob_t gl;
   char *tp;
   int findmap = stopmap|MAP_VMSCOMMA|MAP_BLANK|MAP_NUL;
+  gl.gl_offs = 0;
 
   /* Always stop on NUL.  */
   stopmap |= MAP_NUL;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]