As part of the ongoing effort to replace `unsigned long` data types with `size_t` wherever appropriate (mainly to fix all those problems on Windows with objects larger than 4GB), let's also adjust the return type and the type of the `len` parameter of this function. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 lines
316 B
C
16 lines
316 B
C
#include "git-compat-util.h"
|
|
#include "packfile.h"
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|
{
|
|
enum object_type type;
|
|
size_t len;
|
|
|
|
unpack_object_header_buffer((const unsigned char *)data,
|
|
size, &type, &len);
|
|
|
|
return 0;
|
|
}
|