[master] 13716ff Silent coverity

Guillaume Quintard guillaume at varnish-software.com
Tue Feb 14 10:56:05 CET 2017


commit 13716ffbe76e7139960f9bbca0f974ab79b3d78d
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date:   Tue Feb 14 10:33:45 2017 +0100

    Silent coverity

diff --git a/bin/varnishtest/vtc_h2_hpack.c b/bin/varnishtest/vtc_h2_hpack.c
index a0b14d0..447d59a 100644
--- a/bin/varnishtest/vtc_h2_hpack.c
+++ b/bin/varnishtest/vtc_h2_hpack.c
@@ -88,6 +88,7 @@ huff_decode(char *str, int nm, struct hpk_iter *iter, int ilen)
 		if (sym->csm == 0 || pl < sym->csm)
 			return (0);
 
+		assert(sym->csm <= 8);
 		pack <<= sym->csm;
 		assert(sym->csm <= pl);
 		pl -= sym->csm;



More information about the varnish-commit mailing list