Staging
v0.5.1
https://github.com/git/git
Revision 898f80736c75878acc02dc55672317fcc0e0a5a6 authored by Junio C Hamano on 29 October 2020, 21:24:09 UTC, committed by Junio C Hamano on 29 October 2020, 21:24:09 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a94bce6
Raw File
Tip revision: 898f80736c75878acc02dc55672317fcc0e0a5a6 authored by Junio C Hamano on 29 October 2020, 21:24:09 UTC
Git 2.29.2
Tip revision: 898f807
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