← Commit list

572930027

Denis Vlasenko
Denis Vlasenko
2009-04-26
FAILED Duration: 31s

Subject

hush: nommu fix for function passing

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush.c+4 -1
@@ -5328,9 +5328,12 @@ static int parse_stream_dquoted(o_string *as_string,
* within double quotes by preceding it with a backslash.
*/
if (strchr("$`\"\\", next) != NULL) {
- o_addqchr(dest, i_getch(input));
+ ch = i_getch(input);
+ o_addqchr(dest, ch);
+ nommu_addchr(as_string, ch);
} else {
o_addqchr(dest, '\\');
+ nommu_addchr(as_string, '\\');
}
goto again;
}
shell/hush_test/hush-misc/func4.right+2 -0
@@ -0,0 +1,2 @@
+24
+Done
shell/hush_test/hush-misc/func4.tests+7 -0
@@ -0,0 +1,7 @@
+func() {
+ eval "echo \"\${val_${1}}\""
+}
+
+val_x=24
+(func x)
+echo Done
shell/hush_test/hush-z_slow/leak_all1.tests+2 -0
@@ -67,6 +67,7 @@ HERE
f >/dev/null
: $((i++))
done
+unset i l t
unset -f f
memleak
@@ -134,6 +135,7 @@ HERE
f >/dev/null
: $((i++))
done
+unset i l t
unset -f f