Displaying 3 results from an estimated 3 matches for "savelastp".
2012 Jul 02
0
[klibc:master] [EVAL] Remove unused EV_BACKCMD flag
...we disable executing builtins in the same
- * context as the shell, because we are not keeping
- * enough state to recover from changes that are
- * supposed only to affect subshells. eg. echo "`cd /`"
- */
- if (n->type == NCMD) {
- struct ifsregion saveifs;
- struct ifsregion *savelastp;
- struct nodelist *saveargbackq;
-
- saveifs = ifsfirst;
- savelastp = ifslastp;
- saveargbackq = argbackq;
-
- exitstatus = oexitstatus;
- evalcommand(n, EV_BACKCMD, result);
-
- ifsfirst = saveifs;
- ifslastp = savelastp;
- argbackq = saveargbackq;
- } else
-#endif
- {
- int pip[2];
-...
2019 Jan 25
0
[klibc:update-dash] expand: Fix buffer overflow in expandmeta
...sort(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->text, RMESCAPE_ALLOC | RMESCAPE_HEAP);
- {
- int i = strlen(str->text);
- expdir = ckmalloc(i < 2048...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix buffer overflow in expandmeta
...sort(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->text, RMESCAPE_ALLOC | RMESCAPE_HEAP);
- {
- int i = strlen(str->text);
- expdir = ckmalloc(i < 2048...