We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0b3707 commit 39dbf50Copy full SHA for 39dbf50
test/fuzzer.c
@@ -5,6 +5,9 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
5
{
6
if(size < 1) return 0;
7
8
+ /* Avoid timeout with long inputs */
9
+ if(size > (64 * 1024)) return 0;
10
+
11
if(data[size-1] != '\0') return 0;
12
13
const uint8_t* ptr = data;
@@ -54,7 +57,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
54
57
options = UTF8PROC_STRIPCC;
55
58
memcpy(copy, data, size);
56
59
utf8proc_normalize_utf32(copy, size, options);
-
60
61
options = 0;
62
63
0 commit comments