dc: Fix segfault when executing strings generated using asciify

function                                             old     new   delta
zxc_vm_process                                      6884    6891      +7

Signed-off-by: Brian Foley <bpfoley@google.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Brian Foley
2019-09-05 10:50:13 +02:00
committed by Denys Vlasenko
parent 7454879a1d
commit b64470be17
2 changed files with 13 additions and 2 deletions

View File

@@ -54,6 +54,11 @@ testing "dc: x should not execute or pop non-strings" \
"42\n" \
"" ""
testing "dc: x should work with strings created from a" \
"dc -e'42 112 a x'" \
"42\n" \
"" ""
testing "dc read" \
"dc -finput" \
"2\n9\n1\n" \