common: Avoid excessive stack use.
authorJustus Winter <justus@g10code.com>
Tue, 26 Jul 2016 12:49:02 +0000 (14:49 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 26 Jul 2016 12:49:02 +0000 (14:49 +0200)
commitb3610badf691178bbbf0831af9aa6b6658c1948a
treeb651ee9628cc1823029aafb7d41634b14e27e3d2
parent35132a8b119dbc3393ceb0d0874917905d1a6354
common: Avoid excessive stack use.

* common/exectool.c (copy_buffer_shred): Make passing NULL a nop.
(gnupg_exec_tool_stream): Allocate copy buffers from the heap.

Signed-off-by: Justus Winter <justus@g10code.com>
common/exectool.c