Staging
v0.5.1
v0.5.1
Revision a5828ae6b52137b913b978e16cd2334482eb4c1f authored by Junio C Hamano on 15 March 2021, 18:51:51 UTC, committed by Junio C Hamano on 15 March 2021, 18:51:51 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 8775279
fuzz-pack-headers.c
#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;
unsigned long len;
unpack_object_header_buffer((const unsigned char *)data,
(unsigned long)size, &type, &len);
return 0;
}
Computing file changes ...