diff options
author | Mark D. Roth <roth@google.com> | 2017-03-21 13:08:53 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-03-21 13:08:53 -0700 |
commit | 14ef5d83e2e7d5b37179e3517e7da5bbd71ca30f (patch) | |
tree | 9dd4d288d15ae09f4f80b5aa6350755c3cc59443 /test/core | |
parent | d86d7424a0844e90bd4748b428e988443545051d (diff) | |
parent | e50c7bdcc83638544eed01f20c19b89648d78fe9 (diff) |
Merge remote-tracking branch 'upstream/master' into remove_initial_connect_string
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/support/cpu_test.c | 7 | ||||
-rw-r--r-- | test/core/transport/chttp2/hpack_parser_corpus/clusterfuzz-testcase-5298216461402112 | bin | 0 -> 172032 bytes |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/core/support/cpu_test.c b/test/core/support/cpu_test.c index ca0fe0ccb5..7b9bf6c5e1 100644 --- a/test/core/support/cpu_test.c +++ b/test/core/support/cpu_test.c @@ -81,9 +81,12 @@ static void worker_thread(void *arg) { uint32_t cpu; unsigned r = 12345678; unsigned i, j; - for (i = 0; i < 1000 / grpc_test_slowdown_factor(); i++) { + /* Avoid repetitive division calculations */ + int64_t max_i = 1000 / grpc_test_slowdown_factor(); + int64_t max_j = 1000000 / grpc_test_slowdown_factor(); + for (i = 0; i < max_i; i++) { /* run for a bit - just calculate something random. */ - for (j = 0; j < 1000000 / grpc_test_slowdown_factor(); j++) { + for (j = 0; j < max_j; j++) { r = (r * 17) & ((r - i) | (r * i)); } cpu = gpr_cpu_current_cpu(); diff --git a/test/core/transport/chttp2/hpack_parser_corpus/clusterfuzz-testcase-5298216461402112 b/test/core/transport/chttp2/hpack_parser_corpus/clusterfuzz-testcase-5298216461402112 Binary files differnew file mode 100644 index 0000000000..04d48d6d76 --- /dev/null +++ b/test/core/transport/chttp2/hpack_parser_corpus/clusterfuzz-testcase-5298216461402112 |