[master] 736a5692f Flexelint polish

Nils Goroll nils.goroll at uplex.de
Mon Dec 4 11:38:05 UTC 2023


commit 736a5692f61a61ca1bf05cfff5a2c5d017f11689
Author: Nils Goroll <nils.goroll at 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);
 }
 
 /*--------------------------------------------------------------------


More information about the varnish-commit mailing list