implement limits on command substitution output

This makes command substitutions impose the same limit on the amount
of data they accept as the `read` builtin. It does not limit output of
external commands or builtins in other contexts.

Fixes #3822
This commit is contained in:
Kurtis Rader
2017-07-26 20:17:04 -07:00
parent 7e36053ed9
commit 4197420f39
15 changed files with 257 additions and 95 deletions

View File

@@ -724,7 +724,6 @@ int parser_t::eval_block_node(node_offset_t node_idx, const io_chain_t &io,
this->pop_block(scope_block);
job_reap(0); // reap again
return result;
}