hush: fix segfault in ${?:N:M}
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 May 2010 04:20:26 +0000 (06:20 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 May 2010 04:20:26 +0000 (06:20 +0200)
commite85248afa23434b78e48fe09b57eea5f6657410d
tree8e4ddbead7f630a6cf3f5e224fb05952818b76a2
parent8a33679694b0fdf459d69868f85c081cab5687cb
hush: fix segfault in ${?:N:M}

function                                             old     new   delta
expand_vars_to_list                                 2374    2409     +35
builtin_umask                                        132     133      +1
builtin_exit                                          47      48      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 37/0)               Total: 37 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
shell/hush_test/hush-vars/param_expand_alt.right
shell/hush_test/hush-vars/param_expand_alt.tests
shell/hush_test/hush-vars/param_expand_bash_substring.right
shell/hush_test/hush-vars/param_expand_bash_substring.tests