FreeRDP
TestFuzzCommonAssistanceHexStringToBin.c
1
#include <freerdp/assistance.h>
2
3
int
LLVMFuzzerTestOneInput(
const
uint8_t* Data,
size_t
Size)
4
{
5
char
* buf = calloc(Size + 1,
sizeof
(
char
));
6
if
(buf == NULL)
7
return
0;
8
memcpy(buf, Data, Size);
9
buf[Size] =
'\0'
;
10
11
BYTE* pass = freerdp_assistance_hex_string_to_bin((
void
*)buf, &Size);
12
free(pass);
13
free(buf);
14
15
return
0;
16
}
libfreerdp
common
test
TestFuzzCommonAssistanceHexStringToBin.c
Generated by
1.9.1