Files
git/oss-fuzz/fuzz-pack-headers.c
Johannes Schindelin d50ac11724 packfile: widen unpack_object_header_buffer() to size_t
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>
2026-08-13 09:44:09 -07:00

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;
}