diff options
author | van Hauser <vh@thc.org> | 2020-07-30 17:09:22 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-07-30 17:09:22 +0200 |
commit | ea9ba53cdbc6d175f3f055c9a308668ebaacda1e (patch) | |
tree | e902b997bf3967a43f3a307e40aebde9675ac26d /test/test-floatingpoint.c | |
parent | 1ba48a5ba06106148b1b0e8d56472738fb2ce44c (diff) | |
download | afl++-ea9ba53cdbc6d175f3f055c9a308668ebaacda1e.tar.gz |
fix oob reads, code-format
Diffstat (limited to 'test/test-floatingpoint.c')
-rw-r--r-- | test/test-floatingpoint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-floatingpoint.c b/test/test-floatingpoint.c index d1709b90..3a699595 100644 --- a/test/test-floatingpoint.c +++ b/test/test-floatingpoint.c @@ -17,10 +17,10 @@ int main(void) { int len = __AFL_FUZZ_TESTCASE_LEN; if (len != sizeof(float)) return 1; - /* 15 + 1/2 = 15.5 */ - /* 15 + 1/2 + 1/8 = 15.625 */ - /* 15 + 1/2 + 1/8 + 1/32 = 15.65625 */ - /* 15 + 1/2 + 1/8 + 1/32 + 1/128 = 15.6640625 */ + /* 15 + 1/2 = 15.5 */ + /* 15 + 1/2 + 1/8 = 15.625 */ + /* 15 + 1/2 + 1/8 + 1/32 = 15.65625 */ + /* 15 + 1/2 + 1/8 + 1/32 + 1/128 = 15.6640625 */ if ((-*magic == 15.0 + 0.5 + 0.125 + 0.03125 + 0.0078125)) abort(); } |