[test] fix uninitialized variables in test case
This commit is contained in:
parent
da7c3b688f
commit
d0bf018e95
@ -4,13 +4,12 @@
|
|||||||
|
|
||||||
int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size)
|
int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size)
|
||||||
{
|
{
|
||||||
|
rdpCertificateData* data = NULL;
|
||||||
char* pem = calloc(Size + 1, sizeof(char));
|
char* pem = calloc(Size + 1, sizeof(char));
|
||||||
if (pem == NULL)
|
if (pem == NULL)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
memcpy(pem, Data, Size);
|
memcpy(pem, Data, Size);
|
||||||
pem[Size] = '\0';
|
|
||||||
|
|
||||||
rdpCertificateData* data = NULL;
|
|
||||||
data = freerdp_certificate_data_new_from_pem("somehost", 1234, pem, Size);
|
data = freerdp_certificate_data_new_from_pem("somehost", 1234, pem, Size);
|
||||||
if (!data)
|
if (!data)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
Reference in New Issue
Block a user