fuzzing: Use nul-terminated array introduced in previous commit

This fixes commit b2a6a9a434. Doh.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-06-30 11:08:05 +01:00
parent f1a9599bcd
commit 0bf12c8bfa

View File

@ -12,7 +12,7 @@ LLVMFuzzerTestOneInput (const unsigned char *data, size_t size)
/* ignore @size (g_uri_parse() doesnt support it); ensure @data is nul-terminated */
nul_terminated_data = (unsigned char *) g_strndup ((const gchar *) data, size);
uri = g_uri_parse ((const gchar *) data, flags, NULL);
uri = g_uri_parse ((const gchar *) nul_terminated_data, flags, NULL);
g_free (nul_terminated_data);
if (uri == NULL)