search for: expmeta

Displaying 8 results from an estimated 8 matches for "expmeta".

2019 Jan 25
0
[klibc:update-dash] expand: Fix buffer overflow in expandmeta
...ions(+), 24 deletions(-) diff --git a/usr/dash/expand.c b/usr/dash/expand.c index 974a31de..f52f34c9 100644 --- a/usr/dash/expand.c +++ b/usr/dash/expand.c @@ -124,7 +124,7 @@ STATIC void expandmeta(struct strlist *, int); #ifdef HAVE_GLOB STATIC void addglob(const glob_t *); #else -STATIC 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; S...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix buffer overflow in expandmeta
...ions(+), 24 deletions(-) diff --git a/usr/dash/expand.c b/usr/dash/expand.c index 974a31de..f52f34c9 100644 --- a/usr/dash/expand.c +++ b/usr/dash/expand.c @@ -124,7 +124,7 @@ STATIC void expandmeta(struct strlist *, int); #ifdef HAVE_GLOB STATIC void addglob(const glob_t *); #else -STATIC 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; S...
2019 Jan 25
0
[klibc:update-dash] expand: Do not quote backslashes in unquoted parameter expansion
...This patch does exactly that. Note that this patch does not work unless you have already applied https://patchwork.kernel.org/patch/10306507/ because otherwise the optimisation mentioned above does not get detected correctly and we will end up doing quote removal twice. This patch also updates expmeta to handle naked backslashes at the end of the pattern which is now possible. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/expand.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --g...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Do not quote backslashes in unquoted parameter expansion
...This patch does exactly that. Note that this patch does not work unless you have already applied https://patchwork.kernel.org/patch/10306507/ because otherwise the optimisation mentioned above does not get detected correctly and we will end up doing quote removal twice. This patch also updates expmeta to handle naked backslashes at the end of the pattern which is now possible. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/expand.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --g...
2010 Mar 22
1
[git pull] dash, sh4, README's
...length check on eofmark [klibc] [EXPAND] Removed herefd hack [klibc] [EXPAND] Expand here-documents in the current shell environment [klibc] [PARSER] Add FAKEEOFMARK for expandstr [klibc] [PARSER] Do not show prompts in expandstr [klibc] [EXPAND] Fix slash treatment in expmeta [klibc] [EXEC] Fixed _PATH_BSHELL warning [klibc] [ERROR] Set default exvwarning2 arg0 for errors during early initialisation [klibc] [CD] Restored non-glibc getcwd support [klibc] [CD] Test __GLIBC__ instead of _GNU_SOURCE [klibc] [CD] Restored warning when getcwd fai...
2010 Apr 16
0
[git pull v4] dash, sh4, ipconfig, dprintf, fstype, README's
...length check on eofmark [klibc] [EXPAND] Removed herefd hack [klibc] [EXPAND] Expand here-documents in the current shell environment [klibc] [PARSER] Add FAKEEOFMARK for expandstr [klibc] [PARSER] Do not show prompts in expandstr [klibc] [EXPAND] Fix slash treatment in expmeta [klibc] [EXEC] Fixed _PATH_BSHELL warning [klibc] [ERROR] Set default exvwarning2 arg0 for errors during early initialisation [klibc] [CD] Restored non-glibc getcwd support [klibc] [CD] Test __GLIBC__ instead of _GNU_SOURCE [klibc] [CD] Restored warning when getcwd fai...
2010 Apr 16
0
[PATCH] pull faccessat() system call
...length check on eofmark [klibc] [EXPAND] Removed herefd hack [klibc] [EXPAND] Expand here-documents in the current shell environment [klibc] [PARSER] Add FAKEEOFMARK for expandstr [klibc] [PARSER] Do not show prompts in expandstr [klibc] [EXPAND] Fix slash treatment in expmeta [klibc] [EXEC] Fixed _PATH_BSHELL warning [klibc] [ERROR] Set default exvwarning2 arg0 for errors during early initialisation [klibc] [CD] Restored non-glibc getcwd support [klibc] [CD] Test __GLIBC__ instead of _GNU_SOURCE [klibc] [CD] Restored warning when getcwd fai...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
...length check on eofmark [klibc] [EXPAND] Removed herefd hack [klibc] [EXPAND] Expand here-documents in the current shell environment [klibc] [PARSER] Add FAKEEOFMARK for expandstr [klibc] [PARSER] Do not show prompts in expandstr [klibc] [EXPAND] Fix slash treatment in expmeta [klibc] [EXEC] Fixed _PATH_BSHELL warning [klibc] [ERROR] Set default exvwarning2 arg0 for errors during early initialisation [klibc] [CD] Restored non-glibc getcwd support [klibc] [CD] Test __GLIBC__ instead of _GNU_SOURCE [klibc] [CD] Restored warning when getcwd fai...