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 6bfa56a commit c470982Copy full SHA for c470982
libc/fuzzing/stdlib/strtointeger_differential_fuzz.cpp
@@ -44,6 +44,10 @@
44
// greater than 50% chance for each character to end the string, making the odds
45
// of getting long numbers very low.
46
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
47
+ if (size < 2) // Needs at least one byte for the base and one byte for the
48
+ // string.
49
+ return 0;
50
+
51
uint8_t *container = new uint8_t[size + 1];
52
if (!container)
53
__builtin_trap();
0 commit comments