Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
third_party
bloaty
third_party
capstone
suite
fuzz
onefile.c
Go to the documentation of this file.
1
#include <
stdint.h
>
2
#include <stdlib.h>
3
#include <stdio.h>
4
5
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*Data,
size_t
Size);
6
7
int
main
(
int
argc,
char
** argv)
8
{
9
FILE
* fp;
10
uint8_t
*Data;
11
size_t
Size;
12
13
if
(argc != 2) {
14
return
1;
15
}
16
//opens the file, get its size, and reads it into a buffer
17
fp = fopen(argv[1],
"rb"
);
18
if
(fp == NULL) {
19
return
2;
20
}
21
if
(fseek(fp, 0
L
,
SEEK_END
) != 0) {
22
fclose
(fp);
23
return
2;
24
}
25
Size = ftell(fp);
26
if
(Size == (
size_t
) -1) {
27
fclose
(fp);
28
return
2;
29
}
30
if
(fseek(fp, 0
L
,
SEEK_SET
) != 0) {
31
fclose
(fp);
32
return
2;
33
}
34
Data = malloc(Size);
35
if
(Data == NULL) {
36
fclose
(fp);
37
return
2;
38
}
39
if
(fread(Data, Size, 1, fp) != 1) {
40
fclose
(fp);
41
free(Data);
42
return
2;
43
}
44
45
//lauch fuzzer
46
LLVMFuzzerTestOneInput
(Data, Size);
47
free(Data);
48
fclose
(fp);
49
return
0;
50
}
51
SEEK_END
#define SEEK_END
Definition:
bloaty/third_party/zlib/contrib/minizip/zip.c:84
main
int main(int argc, char **argv)
Definition:
onefile.c:7
uint8_t
unsigned char uint8_t
Definition:
stdint-msvc2008.h:78
LLVMFuzzerTestOneInput
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
Definition:
sockaddr_utils_fuzzer_test.cc:29
stdint.h
benchmark.FILE
FILE
Definition:
benchmark.py:21
grpc::fclose
fclose(creds_file)
L
lua_State * L
Definition:
upb/upb/bindings/lua/main.c:35
SEEK_SET
#define SEEK_SET
Definition:
bloaty/third_party/zlib/contrib/minizip/zip.c:88
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:45