Mailing List Archive

[master] 736a5692f Flexelint polish
commit 736a5692f61a61ca1bf05cfff5a2c5d017f11689
Author: Nils Goroll <nils.goroll@uplex.de>
Date: Mon Dec 4 12:37:04 2023 +0100

Flexelint polish

Ref 63e4f71efb9392407863f87ca4a89127d252ecb0

diff --git a/bin/varnishd/mgt/mgt_param_tweak.c b/bin/varnishd/mgt/mgt_param_tweak.c
index 07ad6ce30..e80054244 100644
--- a/bin/varnishd/mgt/mgt_param_tweak.c
+++ b/bin/varnishd/mgt/mgt_param_tweak.c
@@ -611,7 +611,7 @@ static inline void
bit_clear(uint8_t *p, unsigned l)
{

- memset(p, 0, (l + 7) >> 3);
+ memset(p, 0, ((size_t)l + 7) >> 3);
}

/*--------------------------------------------------------------------
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit