commit | 8120a7a670e0fb10ef089d00fb7c32c2f4c413f5 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Tue Jan 22 11:38:29 2019 -0800 |
committer | android-build-merger <android-build-merger@google.com> | Tue Jan 22 11:38:29 2019 -0800 |
tree | a900e7e205a6b6f09291271320ed253ec41ed472 | |
parent | 5504901bf021742ad94a8a45cc3a7ec280e741f8 [diff] | |
parent | e5296cc04d9bc4f2736d8f7c5a8fdff427dcd14e [diff] |
Merge "Utils: correctly handle read() errors in ReadRandomBytes()" am: a2bd436594 am: 038a274e8a am: e5296cc04d Change-Id: I0f81be91efee4512510d9e0422b96d8e75951cd4
diff --git a/Utils.cpp b/Utils.cpp index 341c927..f9b61b6 100644 --- a/Utils.cpp +++ b/Utils.cpp
@@ -377,7 +377,7 @@ return -errno; } - size_t n; + ssize_t n; while ((n = TEMP_FAILURE_RETRY(read(fd, &buf[0], bytes))) > 0) { bytes -= n; buf += n;