Staging
v0.5.1
https://github.com/git/git
Revision b4374e96c84ed9394fed363973eb540da308ed4f authored by Junio C Hamano on 09 March 2020, 18:20:59 UTC, committed by Junio C Hamano on 09 March 2020, 18:21:21 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4a5c3e1
Raw File
Tip revision: b4374e96c84ed9394fed363973eb540da308ed4f authored by Junio C Hamano on 09 March 2020, 18:20:59 UTC
Git 2.26-rc1
Tip revision: b4374e9
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