tests UPDATE fuzz build and sources updated
diff --git a/tests/fuzz/lys_parse_mem.c b/tests/fuzz/lys_parse_mem.c
index ea244d1..02e0a62 100644
--- a/tests/fuzz/lys_parse_mem.c
+++ b/tests/fuzz/lys_parse_mem.c
@@ -6,32 +6,32 @@
int LLVMFuzzerTestOneInput(uint8_t const *buf, size_t len)
{
- struct ly_ctx *ctx = NULL;
- static bool log = false;
- char *data = NULL;
- LY_ERR err;
+ struct ly_ctx *ctx = NULL;
+ static bool log = false;
+ char *data = NULL;
+ LY_ERR err;
- if (!log) {
- ly_log_options(0);
- log = true;
- }
+ if (!log) {
+ ly_log_options(0);
+ log = true;
+ }
- err = ly_ctx_new(NULL, 0, &ctx);
- if (err != LY_SUCCESS) {
- fprintf(stderr, "Failed to create context\n");
- exit(EXIT_FAILURE);
- }
+ err = ly_ctx_new(NULL, 0, &ctx);
+ if (err != LY_SUCCESS) {
+ fprintf(stderr, "Failed to create context\n");
+ exit(EXIT_FAILURE);
+ }
- data = malloc(len + 1);
- if (data == NULL) {
- return 0;
- }
+ data = malloc(len + 1);
+ if (data == NULL) {
+ return 0;
+ }
- memcpy(data, buf, len);
- data[len] = 0;
+ memcpy(data, buf, len);
+ data[len] = 0;
- lys_parse_mem(ctx, data, LYS_IN_YANG, NULL);
- ly_ctx_destroy(ctx);
- free(data);
- return 0;
+ lys_parse_mem(ctx, data, LYS_IN_YANG, NULL);
+ ly_ctx_destroy(ctx);
+ free(data);
+ return 0;
}