coredump: use loop_read() for reading coredump into memory

Fixes: #26748
This commit is contained in:
Lennart Poettering
2023-06-23 09:38:12 +02:00
parent 6270b2e67e
commit a73c74db66
2 changed files with 7 additions and 7 deletions
+1 -2
View File
@@ -54,8 +54,7 @@ ssize_t loop_read(int fd, void *buf, size_t nbytes, bool do_poll) {
assert(fd >= 0);
/* If called with nbytes == 0, let's call read() at least
* once, to validate the operation */
/* If called with nbytes == 0, let's call read() at least once, to validate the operation */
if (nbytes > (size_t) SSIZE_MAX)
return -EINVAL;