aboutsummaryrefslogtreecommitdiff
path: root/test/test-floatingpoint.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-30 18:01:18 +0200
committervan Hauser <vh@thc.org>2020-07-30 18:01:18 +0200
commit486e5365d9e5cb56ffd5b5ade2f81a728de4a175 (patch)
treeeae69f8fa0b6e5fc2f6c8aaa77fd880c3030e90d /test/test-floatingpoint.c
parent8e809d8593d9230c123aa22c8cd0b695e54d7c68 (diff)
downloadAFLplusplus-486e5365d9e5cb56ffd5b5ade2f81a728de4a175.tar.gz
fix float splitting if not on a tty
Diffstat (limited to 'test/test-floatingpoint.c')
-rw-r--r--test/test-floatingpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-floatingpoint.c b/test/test-floatingpoint.c
index 3a699595..66d84411 100644
--- a/test/test-floatingpoint.c
+++ b/test/test-floatingpoint.c
@@ -15,7 +15,7 @@ int main(void) {
while (__AFL_LOOP(INT_MAX)) {
int len = __AFL_FUZZ_TESTCASE_LEN;
- if (len != sizeof(float)) return 1;
+ if (len < sizeof(float)) return 1;
/* 15 + 1/2 = 15.5 */
/* 15 + 1/2 + 1/8 = 15.625 */