View Bazaar branches
Get this repository:
git clone


Name Last Modified Last Commit
master 2020-07-04 23:53:38 UTC 2020-07-04
Fix handling of read/write errors

Author: Colin Watson
Author Date: 2020-07-04 23:44:42 UTC

Fix handling of read/write errors

safe_read and safe_write return size_t and define SAFE_READ_ERROR and
SAFE_WRITE_ERROR as error return values. We had previously been
assigning their result to a signed value. As a result, whether
passthrough, pipeline_pump, and get_block would detect read/write errors
was implementation-defined.

* lib/pipeline.c (passthrough, get_block): Assign safe_read return value
to a size_t rather than a signed integer type, and check for
SAFE_READ_ERROR rather than negative values.
(pipeline_pump): Assign safe_write return value to a size_t rather than
an ssize_t, and check for SAFE_WRITE_ERROR rather than negative values.
* NEWS: Document this.

11 of 1 result

Other repositories

Name Last Modified
lp:libpipeline 2020-07-05
11 of 1 result
You can't create new repositories for libpipeline.