/src/rauc/fuzz/manifest.c
Line | Count | Source |
1 | | #include <stdio.h> |
2 | | #include <locale.h> |
3 | | #include <glib.h> |
4 | | #include <glib/gstdio.h> |
5 | | |
6 | | #include <config_file.h> |
7 | | #include <context.h> |
8 | | #include <manifest.h> |
9 | | |
10 | | #include "fuzz.h" |
11 | | |
12 | | int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) |
13 | 2.72k | { |
14 | 2.72k | g_autoptr(GBytes) dt = g_bytes_new(data, size); |
15 | 2.72k | g_autoptr(RaucManifest) rm = NULL; |
16 | 2.72k | g_autoptr(GError) error = NULL; |
17 | | |
18 | 2.72k | fuzz_set_logging_func(); |
19 | | |
20 | 2.72k | (void) load_manifest_mem(dt, &rm, &error); |
21 | | |
22 | 2.72k | return 0; |
23 | 2.72k | } |