diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-13 18:22:35 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-13 18:22:35 +0100 |
commit | 25d9b91d94688b9b022224b95c06cbd4b75da085 (patch) | |
tree | 6d3b5dd63f3fab3fba018c73ae4bc64e5a38b150 /shell/shell_common.h | |
parent | 03d81ef43aca1808255d1a2a19ec394ed805eee8 (diff) | |
download | busybox-w32-25d9b91d94688b9b022224b95c06cbd4b75da085.tar.gz busybox-w32-25d9b91d94688b9b022224b95c06cbd4b75da085.tar.bz2 busybox-w32-25d9b91d94688b9b022224b95c06cbd4b75da085.zip |
shell/read: check that variable names are sane
function old new delta
shell_builtin_read 1000 1055 +55
parse_command 1460 1463 +3
builtin_umask 121 123 +2
is_well_formed_var_name 73 66 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/shell_common.h')
-rw-r--r-- | shell/shell_common.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/shell/shell_common.h b/shell/shell_common.h index a9e9a2239..7c8e8c356 100644 --- a/shell/shell_common.h +++ b/shell/shell_common.h | |||
@@ -21,14 +21,10 @@ | |||
21 | 21 | ||
22 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | 22 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN |
23 | 23 | ||
24 | #define IFS_BROKEN 1 | ||
25 | |||
26 | #if IFS_BROKEN | ||
27 | extern const char defifsvar[]; /* "IFS= \t\n" */ | 24 | extern const char defifsvar[]; /* "IFS= \t\n" */ |
28 | #define defifs (defifsvar + 4) | 25 | #define defifs (defifsvar + 4) |
29 | #else | 26 | |
30 | extern const char defifs[]; /* " \t\n" */ | 27 | int FAST_FUNC is_well_formed_var_name(const char *s, char terminator); |
31 | #endif | ||
32 | 28 | ||
33 | POP_SAVED_FUNCTION_VISIBILITY | 29 | POP_SAVED_FUNCTION_VISIBILITY |
34 | 30 | ||