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>
This commit is contained in:
@@ -21,14 +21,10 @@
|
||||
|
||||
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||
|
||||
#define IFS_BROKEN 1
|
||||
|
||||
#if IFS_BROKEN
|
||||
extern const char defifsvar[]; /* "IFS= \t\n" */
|
||||
#define defifs (defifsvar + 4)
|
||||
#else
|
||||
extern const char defifs[]; /* " \t\n" */
|
||||
#endif
|
||||
|
||||
int FAST_FUNC is_well_formed_var_name(const char *s, char terminator);
|
||||
|
||||
POP_SAVED_FUNCTION_VISIBILITY
|
||||
|
||||
|
Reference in New Issue
Block a user