1 #define DISABLE_SIGN_COMPARE_WARNINGS
3 #include "git-compat-util.h"
10 int LLVMFuzzerTestOneInput(const uint8_t *data
, size_t size
);
12 int LLVMFuzzerTestOneInput(const uint8_t *data
, size_t size
)
14 struct match_attr
*res
;
17 buf
= malloc(size
+ 1);
21 memcpy(buf
, data
, size
);
24 res
= parse_attr_line(buf
, "dummy", 0, 0);
28 for (j
= 0; j
< res
->num_attr
; j
++) {
29 const char *setto
= res
->state
[j
].setto
;
30 if (ATTR_TRUE(setto
) || ATTR_FALSE(setto
) ||