[master] 39031d9 add a noop VSLb_ts to the fuzzer

Nils Goroll nils.goroll at uplex.de
Sun Apr 22 22:57:14 UTC 2018


commit 39031d9ba2395d4d27e72d3a3e204fbe99e2e1aa
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Apr 23 00:55:38 2018 +0200

    add a noop VSLb_ts to the fuzzer
    
    suncc implements the inline functions from cache.h using it

diff --git a/bin/varnishd/fuzzers/esi_parse_fuzzer.c b/bin/varnishd/fuzzers/esi_parse_fuzzer.c
index 0a372b7..049d98a 100644
--- a/bin/varnishd/fuzzers/esi_parse_fuzzer.c
+++ b/bin/varnishd/fuzzers/esi_parse_fuzzer.c
@@ -55,6 +55,7 @@ VSLb(struct vsl_log *vsl, enum VSL_tag_e tag, const char *fmt, ...)
 	(void)fmt;
 }
 
+
 void *
 WS_Alloc(struct ws *ws, unsigned bytes)
 {
@@ -62,6 +63,17 @@ WS_Alloc(struct ws *ws, unsigned bytes)
 	return (calloc(1, bytes));
 }
 
+void
+VSLb_ts(struct vsl_log *l, const char *event, double first, double *pprev,
+    double now)
+{
+	(void)l;
+	(void)event;
+	(void)first;
+	(void)pprev;
+	(void)now;
+}
+
 int
 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {


More information about the varnish-commit mailing list