1 #include <freerdp/assistance.h>
3 static int parse_file_buffer(
const uint8_t* Data,
size_t Size)
5 static const char TEST_MSRC_INCIDENT_PASSWORD_TYPE2[] =
"48BJQ853X3B4";
7 rdpAssistanceFile* file = freerdp_assistance_file_new();
11 char* buf = calloc(Size + 1,
sizeof(
char));
14 memcpy(buf, Data, Size);
17 status = freerdp_assistance_parse_file_buffer(file, buf, Size + 1,
18 TEST_MSRC_INCIDENT_PASSWORD_TYPE2);
21 freerdp_assistance_file_free(file);
24 return status >= 0 ? TRUE : FALSE;
27 int LLVMFuzzerTestOneInput(
const uint8_t* Data,
size_t Size)
29 parse_file_buffer(Data, Size);