[master] 0d3bee4 Add another couple of FlexeLint mitigations

Poul-Henning Kamp phk at FreeBSD.org
Mon Apr 24 22:55:05 CEST 2017


commit 0d3bee46ff5c3fdc40b9ad05e6554b8735f9cf6b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Apr 24 20:45:12 2017 +0000

    Add another couple of FlexeLint mitigations

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index efa8c58..c8214e4 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -756,7 +756,8 @@ class vcc(object):
 		fo.write("/*lint -restore */\n")
 
 	def api(self, fo):
-		fo.write("\n/*lint -esym(759, Vmod_%s_Data) */\n" % (self.modname))
+		for i in (714, 759, 765):
+			fo.write("\n/*lint -esym(%d, Vmod_%s_Data) */\n" % (i, self.modname))
 		fo.write("const struct vmod_data Vmod_%s_Data = {\n" %
 		    self.modname)
 		fo.write("\t.vrt_major =\tVRT_MAJOR_VERSION,\n")



More information about the varnish-commit mailing list