HomePhabricator

examples: Tolerate incomplete writes in exec example

Authored by ansasaki on Mon, Jun 8, 12:34 PM.

Description

examples: Tolerate incomplete writes in exec example

Previously, the exec example would fail if it could not write the whole
read buffer to stdout. With this changes, the exec example will be able
to write parts of the buffer until the whole buffer is written.

This makes the exec example to run when the stdout buffer is small.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnMon, Jun 22, 1:58 PM
Parents
rLIBSSH1694606e12d8: tests: Add test for CVE-2019-14889
Branches
Unknown
Tags
Unknown