[master] c2e533861 Coverity polish: 1605321 Overflowed integer argument
Nils Goroll
nils.goroll at uplex.de
Thu Sep 12 10:59:04 UTC 2024
commit c2e5338618fea1ea359be1acede1d1d96cbfdf4f
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Sep 12 12:58:36 2024 +0200
Coverity polish: 1605321 Overflowed integer argument
diff --git a/bin/varnishd/http1/cache_http1_pipe.c b/bin/varnishd/http1/cache_http1_pipe.c
index dd8b9098b..e361ba020 100644
--- a/bin/varnishd/http1/cache_http1_pipe.c
+++ b/bin/varnishd/http1/cache_http1_pipe.c
@@ -49,7 +49,7 @@ static struct lock pipestat_mtx;
static int
rdf(int fd0, int fd1, uint64_t *pcnt)
{
- int i, j;
+ ssize_t i, j;
char buf[BUFSIZ], *p;
i = read(fd0, buf, sizeof buf);
More information about the varnish-commit
mailing list