repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Documentation: add Packfile URIs design doc
[git.git]
/
fuzz-pack-headers.c
blob
99da1d0fd385eb3bc0c7f0b4a0b8cd167e0cb5e0
1
#include
"packfile.h"
2
3
int
LLVMFuzzerTestOneInput
(
const uint8_t
*
data
,
size_t
size
);
4
5
int
LLVMFuzzerTestOneInput
(
const uint8_t
*
data
,
size_t
size
)
6
{
7
enum
object_type type
;
8
unsigned long
len
;
9
10
unpack_object_header_buffer
((
const unsigned char
*)
data
,
11
(
unsigned long
)
size
, &
type
, &
len
);
12
13
return
0
;
14
}