Displaying 2 results from an estimated 2 matches for "expdir_max".
2019 Jan 25
0
[klibc:update-dash] expand: Fix buffer overflow in expandmeta
...TATIC void expmeta(char *, char *);
+STATIC void expmeta(char *, unsigned, unsigned);
STATIC struct strlist *expsort(struct strlist *);
STATIC struct strlist *msort(struct strlist *, int);
#endif
@@ -1246,6 +1246,7 @@ addglob(pglob)
#else /* HAVE_GLOB */
STATIC char *expdir;
+STATIC unsigned expdir_max;
STATIC void
@@ -1260,6 +1261,7 @@ expandmeta(struct strlist *str, int flag)
struct strlist **savelastp;
struct strlist *sp;
char *p;
+ unsigned len;
if (fflag)
goto nometa;
@@ -1269,12 +1271,11 @@ expandmeta(struct strlist *str, int flag)
INTOFF;
p = preglob(str->...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix buffer overflow in expandmeta
...TATIC void expmeta(char *, char *);
+STATIC void expmeta(char *, unsigned, unsigned);
STATIC struct strlist *expsort(struct strlist *);
STATIC struct strlist *msort(struct strlist *, int);
#endif
@@ -1246,6 +1246,7 @@ addglob(pglob)
#else /* HAVE_GLOB */
STATIC char *expdir;
+STATIC unsigned expdir_max;
STATIC void
@@ -1260,6 +1261,7 @@ expandmeta(struct strlist *str, int flag)
struct strlist **savelastp;
struct strlist *sp;
char *p;
+ unsigned len;
if (fflag)
goto nometa;
@@ -1269,12 +1271,11 @@ expandmeta(struct strlist *str, int flag)
INTOFF;
p = preglob(str->...