File: binary.c

package info (click to toggle)
libansilove 1.4.2-1
  • links: PTS
  • area: main
  • in suites: forky
  • size: 1,040 kB
  • sloc: ansic: 10,417; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <ansilove.h>

int
LLVMFuzzerTestOneInput(uint8_t *data, size_t size)
{
	struct ansilove_ctx ctx;
	struct ansilove_options options;

	ansilove_init(&ctx, &options);

	ctx.buffer = data;
	ctx.length = size;

	ansilove_binary(&ctx, &options);

	ansilove_clean(&ctx);
	return 0;
}