projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec766a5
)
journal-upload: fix off-by-one in assert()
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 25 Sep 2018 09:22:13 +0000
(11:22 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 25 Sep 2018 09:22:13 +0000
(11:22 +0200)
CID #1394386.
src/journal-remote/journal-upload.c
patch
|
blob
|
history
diff --git
a/src/journal-remote/journal-upload.c
b/src/journal-remote/journal-upload.c
index
5e17d36
..
157ed41
100644
(file)
--- a/
src/journal-remote/journal-upload.c
+++ b/
src/journal-remote/journal-upload.c
@@
-284,7
+284,7
@@
static size_t fd_input_callback(void *buf, size_t size, size_t nmemb, void *user
ssize_t r;
assert(u);
- assert(nmemb <
=
SSIZE_MAX / size);
+ assert(nmemb < SSIZE_MAX / size);
if (u->input < 0)
return 0;