common: Make gnupg_exec_tool conform to spec.
authorWerner Koch <wk@gnupg.org>
Tue, 2 Feb 2016 17:18:31 +0000 (18:18 +0100)
committerWerner Koch <wk@gnupg.org>
Sat, 13 Feb 2016 16:06:38 +0000 (17:06 +0100)
commitd19d6e1856c9a1acbf48e8b2e39b3d9171aa9f7f
treef5cd6311df9f472e0eda42fa3bd51fa601c30c7f
parent81494fd30d3815502247a721f50d9eadf86a73fa
common: Make gnupg_exec_tool conform to spec.

* common/exectool.c (gnupg_exec_tool): Allocate extra byte.  Allow
zero length read.  Append hidden byte.  Release memory on error.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
common/exectool.c