aboutsummaryrefslogtreecommitdiff
path: root/test/test-floatingpoint.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-26 15:55:03 +0200
committervan Hauser <vh@thc.org>2020-07-26 15:55:03 +0200
commit16e362d2b93a60d6c50fca6abfabd9976ca6142d (patch)
treef2c97c7022873e57ae2b60d38c828f6f1d12d275 /test/test-floatingpoint.c
parent23da490f265c761e44c4282eba76f7681f18fd2a (diff)
downloadAFLplusplus-16e362d2b93a60d6c50fca6abfabd9976ca6142d.tar.gz
add last 60s exec/s stat
Diffstat (limited to 'test/test-floatingpoint.c')
-rw-r--r--test/test-floatingpoint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-floatingpoint.c b/test/test-floatingpoint.c
index 083f0df5..acecd55a 100644
--- a/test/test-floatingpoint.c
+++ b/test/test-floatingpoint.c
@@ -8,16 +8,16 @@ __AFL_FUZZ_INIT();
int main(void) {
ssize_t bytes_read;
-
+
__AFL_INIT();
- float *magic = (float*)__AFL_FUZZ_TESTCASE_BUF;
-
+ float *magic = (float *)__AFL_FUZZ_TESTCASE_BUF;
+
while (__AFL_LOOP(INT_MAX)) {
if (__AFL_FUZZ_TESTCASE_LEN != sizeof(float)) return 1;
/* 15 + 1/2 + 1/8 + 1/32 + 1/128 */
if ((-*magic == 15.0 + 0.5 + 0.125 + 0.03125 + 0.0078125)) abort();
-
+
}
return 0;