This source file includes following definitions.
- LLVMFuzzerTestOneInput
1
2
3
4
5
6
7
8
9
10 #include <stdint.h>
11 #include <stdlib.h>
12 #include <stdio.h>
13
14 #include <crm/common/util.h>
15 #include <crm/common/internal.h>
16
17 int
18 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
19 {
20 char *ns = NULL;
21 guint result = 0U;
22
23 if (size > 0) {
24 ns = pcmk__assert_alloc(1, size + 1);
25 memcpy(ns, data, size);
26 ns[size] = '\0';
27 }
28
29 pcmk_str_is_infinity(ns);
30 pcmk_str_is_minus_infinity(ns);
31
32 free(ns);
33 return 0;
34 }