[git commit master] ash: error out on ${#1#}, ${#$11}, ${#11#}

Denys Vlasenko vda.linux at googlemail.com
Mon Oct 5 00:07:23 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=301f5ecb8d5fc1ed85942dd85d58f27a0c9a518a
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/shell/ash.c b/shell/ash.c
index 9f1f8a4..44d3a99 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11291,6 +11291,8 @@ parsesub: {
  badsub:
 			raise_error_syntax("bad substitution");
 		}
+		if (c != '}' && subtype == VSLENGTH)
+			goto badsub;
 
 		STPUTC('=', out);
 		flags = 0;
-- 
1.6.3.3



More information about the busybox-cvs mailing list