Commit 10303d7d authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Dridi Boukelmoune

Polish

parent f20af5b8
...@@ -55,14 +55,6 @@ VSLb(struct vsl_log *vsl, enum VSL_tag_e tag, const char *fmt, ...) ...@@ -55,14 +55,6 @@ VSLb(struct vsl_log *vsl, enum VSL_tag_e tag, const char *fmt, ...)
(void)fmt; (void)fmt;
} }
void *
WS_Alloc(struct ws *ws, unsigned bytes)
{
(void)ws;
return (calloc(1, bytes));
}
void void
VSLb_ts(struct vsl_log *l, const char *event, double first, double *pprev, VSLb_ts(struct vsl_log *l, const char *event, double first, double *pprev,
double now) double now)
...@@ -74,6 +66,13 @@ VSLb_ts(struct vsl_log *l, const char *event, double first, double *pprev, ...@@ -74,6 +66,13 @@ VSLb_ts(struct vsl_log *l, const char *event, double first, double *pprev,
(void)now; (void)now;
} }
void *
WS_Alloc(struct ws *ws, unsigned bytes)
{
(void)ws;
return (calloc(1, bytes));
}
int int
LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{ {
...@@ -90,6 +89,8 @@ LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) ...@@ -90,6 +89,8 @@ LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
if (size < 1) if (size < 1)
return (0); return (0);
AN(data);
VSC_C_main = &__VSC_C_main; VSC_C_main = &__VSC_C_main;
cache_param = &__cache_param; cache_param = &__cache_param;
...@@ -124,8 +125,8 @@ main(int argc, char **argv) ...@@ -124,8 +125,8 @@ main(int argc, char **argv)
int i; int i;
for (i = 1; i < argc; i++) { for (i = 1; i < argc; i++) {
len = 0;
buf = VFIL_readfile(NULL, argv[i], &len); buf = VFIL_readfile(NULL, argv[i], &len);
AN(buf);
LLVMFuzzerTestOneInput((uint8_t *)buf, len); LLVMFuzzerTestOneInput((uint8_t *)buf, len);
free(buf); free(buf);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment