search for: 03e13d846fa0

Displaying 1 result from an estimated 1 matches for "03e13d846fa0".

2015 Apr 21
1
[Bug 11229] New: off-by-one in snprintf() check
...er.de> Date: Tue, 21 Apr 2015 13:50:38 +0200 Subject: [PATCH] rsync: fix of-by-one in check of snprintf() result Signed-off-by: Stefan Behrens <sbehrens at giantdisaster.de> --- io.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/io.c b/io.c index b9a9bd082737..03e13d846fa0 100644 --- a/io.c +++ b/io.c @@ -2283,7 +2283,7 @@ void io_printf(int fd, const char *format, ...) if (len < 0) exit_cleanup(RERR_PROTOCOL); - if (len > (int)sizeof buf) { + if (len >= (int)sizeof buf) { rprintf(FERROR, "io_printf()...