Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
282df440
Commit
282df440
authored
Apr 23, 2018
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
39031d9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
esi_parse_fuzzer.c
bin/varnishd/fuzzers/esi_parse_fuzzer.c
+10
-9
No files found.
bin/varnishd/fuzzers/esi_parse_fuzzer.c
View file @
282df440
...
...
@@ -55,14 +55,6 @@ VSLb(struct vsl_log *vsl, enum VSL_tag_e tag, const char *fmt, ...)
(
void
)
fmt
;
}
void
*
WS_Alloc
(
struct
ws
*
ws
,
unsigned
bytes
)
{
(
void
)
ws
;
return
(
calloc
(
1
,
bytes
));
}
void
VSLb_ts
(
struct
vsl_log
*
l
,
const
char
*
event
,
double
first
,
double
*
pprev
,
double
now
)
...
...
@@ -74,6 +66,13 @@ VSLb_ts(struct vsl_log *l, const char *event, double first, double *pprev,
(
void
)
now
;
}
void
*
WS_Alloc
(
struct
ws
*
ws
,
unsigned
bytes
)
{
(
void
)
ws
;
return
(
calloc
(
1
,
bytes
));
}
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
data
,
size_t
size
)
{
...
...
@@ -90,6 +89,8 @@ LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
if
(
size
<
1
)
return
(
0
);
AN
(
data
);
VSC_C_main
=
&
__VSC_C_main
;
cache_param
=
&
__cache_param
;
...
...
@@ -124,8 +125,8 @@ main(int argc, char **argv)
int
i
;
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
len
=
0
;
buf
=
VFIL_readfile
(
NULL
,
argv
[
i
],
&
len
);
AN
(
buf
);
LLVMFuzzerTestOneInput
((
uint8_t
*
)
buf
,
len
);
free
(
buf
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment