[6.0] f20af5b80 add a noop VSLb_ts to the fuzzer

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Aug 16 08:52:48 UTC 2018


commit f20af5b80a93c0a72754aa2b1e6abc7b905f9567
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 0a372b721..049d98a6d 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