Staging
v0.5.1
Revision d60b6a96f087ea5ad530b71096a604c993fd9e71 authored by Johannes Schindelin on 12 February 2021, 14:49:46 UTC, committed by Johannes Schindelin on 12 February 2021, 14:49:46 UTC
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 4bd06fd
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