Revision 37ed7bf0f13d204ccb6b8e7e2fbcf7b3bf13e25c authored by Junio C Hamano on 13 December 2022, 12:24:14 UTC, committed by Junio C Hamano on 13 December 2022, 12:24:14 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent fea9f60
Raw File
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;
}
back to top