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>
(cherry picked from commit b0518552f19fcf2da3dd265d892205dac23a1b8e)

Details

Committed
ansasakiTue, Jun 23, 7:57 PM
Parents
rLIBSSH1da78553dce8: tests: Add test for CVE-2019-14889
Branches
Unknown
Tags
Unknown