summaryrefslogtreecommitdiffstats
path: root/tests-fuzz
diff options
context:
space:
mode:
authorDaniel Salzman <daniel.salzman@nic.cz>2019-09-12 11:25:44 +0200
committerDaniel Salzman <daniel.salzman@nic.cz>2019-09-12 14:11:52 +0200
commit09aa70e3b3ae88adfcd5ad342a59f76cfd3f756e (patch)
tree53688fb7aec866be3583b160ed22bb48ccbe5e16 /tests-fuzz
parentIntroduce and use knot_dname_txt_storage_t where suitable (diff)
downloadknot-09aa70e3b3ae88adfcd5ad342a59f76cfd3f756e.tar.xz
knot-09aa70e3b3ae88adfcd5ad342a59f76cfd3f756e.zip
Use knot_dname_storage_t where suitable
Diffstat (limited to 'tests-fuzz')
-rw-r--r--tests-fuzz/fuzz_dname_from_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-fuzz/fuzz_dname_from_str.c b/tests-fuzz/fuzz_dname_from_str.c
index 61a3dc914..518dbe518 100644
--- a/tests-fuzz/fuzz_dname_from_str.c
+++ b/tests-fuzz/fuzz_dname_from_str.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -30,7 +30,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
txt[size] = '\0';
// Transform the input.
- uint8_t dname[KNOT_DNAME_MAXLEN];
+ knot_dname_storage_t dname;
(void)knot_dname_from_str(dname, txt, sizeof(dname));
free(txt);