xref: /btstack/test/fuzz/fuzz_ad_parser.c (revision a8d51f092f1b660d0f6921369ad2bc3f9368296c)
1 #include <stdint.h>
2 #include <stddef.h>
3 
4 #include "ad_parser.h"
5 
6 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
7     // ad parser uses uint88_t length
8     if (size > 255) return 0;
9     // test ad iterator by calling simple function that uses it
10     ad_data_contains_uuid16(size, data, 0xffff);
11     return 0;
12 }
13