diff options
author | Craig Tiller <ctiller@google.com> | 2016-03-23 16:33:28 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-03-23 16:33:28 -0700 |
commit | 2123974071e502cde2dea3a457dccfe66af58bc1 (patch) | |
tree | 8b604b8ddd32f3d711ea154c0e1d6b3d7e392ff0 /test/core/http | |
parent | 2a712736fe0d8611a8ea402f9fa3e893902bf864 (diff) |
Merge fixes
Diffstat (limited to 'test/core/http')
-rw-r--r-- | test/core/http/corpus/0299ca2580e4398d170c4a336e0c33eb2cd9d427 (renamed from test/core/http/response_corpus/0299ca2580e4398d170c4a336e0c33eb2cd9d427) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/05e613853d64a9669ea3cf41b0de777dc24931ba (renamed from test/core/http/response_corpus/05e613853d64a9669ea3cf41b0de777dc24931ba) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/069352518a1d1baa05f317c677d275cefda2ac97 (renamed from test/core/http/response_corpus/069352518a1d1baa05f317c677d275cefda2ac97) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/0c5b7c2569410b526605e308309a7f36574e530d (renamed from test/core/http/response_corpus/0c5b7c2569410b526605e308309a7f36574e530d) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/0ef3d0a84360bb5ad66274f1226f5cb273ecdbcf (renamed from test/core/http/response_corpus/0ef3d0a84360bb5ad66274f1226f5cb273ecdbcf) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/1e1273f90187fdf5df3625764245610f86af6aa4 (renamed from test/core/http/response_corpus/1e1273f90187fdf5df3625764245610f86af6aa4) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/33f4ea0c7ea27c37d8f95cfa64d282370efdafd2 (renamed from test/core/http/response_corpus/33f4ea0c7ea27c37d8f95cfa64d282370efdafd2) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/35f0c561297cfc840ddaeebb9fc61091f4eadece (renamed from test/core/http/response_corpus/35f0c561297cfc840ddaeebb9fc61091f4eadece) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/39b19c41ba537f37511eff7727733715db432e76 (renamed from test/core/http/response_corpus/39b19c41ba537f37511eff7727733715db432e76) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/3e3c4756d5e40b5aa250954cbac86b826e70a7ac (renamed from test/core/http/response_corpus/3e3c4756d5e40b5aa250954cbac86b826e70a7ac) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/3fb034e66ee5494a67acae1b4e6ff64ba92a2046 (renamed from test/core/http/response_corpus/3fb034e66ee5494a67acae1b4e6ff64ba92a2046) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/487725eb38511c79a9340bf4560a1411061fa6fa (renamed from test/core/http/response_corpus/487725eb38511c79a9340bf4560a1411061fa6fa) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/4b1f1f79a0bfa3f942479dd5f8edb59a7c257c55 (renamed from test/core/http/response_corpus/4b1f1f79a0bfa3f942479dd5f8edb59a7c257c55) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/5028c56a5116a186b7343ff59567b47347a0796d (renamed from test/core/http/response_corpus/5028c56a5116a186b7343ff59567b47347a0796d) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/5b6292bdf009b0daecbc90b85cca30a88c36eec5 (renamed from test/core/http/response_corpus/5b6292bdf009b0daecbc90b85cca30a88c36eec5) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/657368df512ca6294b9df16adf935a3f374a8be2 (renamed from test/core/http/response_corpus/657368df512ca6294b9df16adf935a3f374a8be2) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/81f59a12b458ec3604035cb962165c604d1355e6 (renamed from test/core/http/response_corpus/81f59a12b458ec3604035cb962165c604d1355e6) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/8f41c50e88ee8c17ecad3d41d63d38fb12aca0b9 (renamed from test/core/http/response_corpus/8f41c50e88ee8c17ecad3d41d63d38fb12aca0b9) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/97e4499d450c95660de86747f527e670f2012548 (renamed from test/core/http/response_corpus/97e4499d450c95660de86747f527e670f2012548) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/aa3bbb876eafa8ad8ca4ff2eabc6dd94341d2441 (renamed from test/core/http/response_corpus/aa3bbb876eafa8ad8ca4ff2eabc6dd94341d2441) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/b04fea5c041c707db0ad9c09a81672557b52cc47 (renamed from test/core/http/response_corpus/b04fea5c041c707db0ad9c09a81672557b52cc47) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/c55ce9995b002e88a102ae2891a71e8bacb346c8 (renamed from test/core/http/response_corpus/c55ce9995b002e88a102ae2891a71e8bacb346c8) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/ca5a0c00b8969310acb73d15ad0d0c602f1bd0c2 (renamed from test/core/http/response_corpus/ca5a0c00b8969310acb73d15ad0d0c602f1bd0c2) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/d4c3e4cf5d035596433c30eaabbd2b2925f4b453 (renamed from test/core/http/response_corpus/d4c3e4cf5d035596433c30eaabbd2b2925f4b453) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/d936dad71c129cf659097dc3db64550c4dd467f4 (renamed from test/core/http/response_corpus/d936dad71c129cf659097dc3db64550c4dd467f4) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/fc5d4b9117ba9e87388174aee4f4970bdfe8d066 (renamed from test/core/http/response_corpus/fc5d4b9117ba9e87388174aee4f4970bdfe8d066) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/request1.txt (renamed from test/core/http/request_corpus/request1.txt) | 0 | ||||
-rw-r--r-- | test/core/http/corpus/response1.txt (renamed from test/core/http/response_corpus/response1.txt) | 0 | ||||
-rw-r--r-- | test/core/http/fuzzer.c (renamed from test/core/http/request_fuzzer.c) | 12 | ||||
-rw-r--r-- | test/core/http/response_fuzzer.c | 50 |
30 files changed, 6 insertions, 56 deletions
diff --git a/test/core/http/response_corpus/0299ca2580e4398d170c4a336e0c33eb2cd9d427 b/test/core/http/corpus/0299ca2580e4398d170c4a336e0c33eb2cd9d427 index 3d6face56a..3d6face56a 100644 --- a/test/core/http/response_corpus/0299ca2580e4398d170c4a336e0c33eb2cd9d427 +++ b/test/core/http/corpus/0299ca2580e4398d170c4a336e0c33eb2cd9d427 diff --git a/test/core/http/response_corpus/05e613853d64a9669ea3cf41b0de777dc24931ba b/test/core/http/corpus/05e613853d64a9669ea3cf41b0de777dc24931ba index 5cbaf2e460..5cbaf2e460 100644 --- a/test/core/http/response_corpus/05e613853d64a9669ea3cf41b0de777dc24931ba +++ b/test/core/http/corpus/05e613853d64a9669ea3cf41b0de777dc24931ba diff --git a/test/core/http/response_corpus/069352518a1d1baa05f317c677d275cefda2ac97 b/test/core/http/corpus/069352518a1d1baa05f317c677d275cefda2ac97 index 8831f0786b..8831f0786b 100644 --- a/test/core/http/response_corpus/069352518a1d1baa05f317c677d275cefda2ac97 +++ b/test/core/http/corpus/069352518a1d1baa05f317c677d275cefda2ac97 diff --git a/test/core/http/response_corpus/0c5b7c2569410b526605e308309a7f36574e530d b/test/core/http/corpus/0c5b7c2569410b526605e308309a7f36574e530d index c79e456904..c79e456904 100644 --- a/test/core/http/response_corpus/0c5b7c2569410b526605e308309a7f36574e530d +++ b/test/core/http/corpus/0c5b7c2569410b526605e308309a7f36574e530d diff --git a/test/core/http/response_corpus/0ef3d0a84360bb5ad66274f1226f5cb273ecdbcf b/test/core/http/corpus/0ef3d0a84360bb5ad66274f1226f5cb273ecdbcf index 7b979b5e10..7b979b5e10 100644 --- a/test/core/http/response_corpus/0ef3d0a84360bb5ad66274f1226f5cb273ecdbcf +++ b/test/core/http/corpus/0ef3d0a84360bb5ad66274f1226f5cb273ecdbcf diff --git a/test/core/http/response_corpus/1e1273f90187fdf5df3625764245610f86af6aa4 b/test/core/http/corpus/1e1273f90187fdf5df3625764245610f86af6aa4 index 67382b4f3a..67382b4f3a 100644 --- a/test/core/http/response_corpus/1e1273f90187fdf5df3625764245610f86af6aa4 +++ b/test/core/http/corpus/1e1273f90187fdf5df3625764245610f86af6aa4 diff --git a/test/core/http/response_corpus/33f4ea0c7ea27c37d8f95cfa64d282370efdafd2 b/test/core/http/corpus/33f4ea0c7ea27c37d8f95cfa64d282370efdafd2 index cce8ded71a..cce8ded71a 100644 --- a/test/core/http/response_corpus/33f4ea0c7ea27c37d8f95cfa64d282370efdafd2 +++ b/test/core/http/corpus/33f4ea0c7ea27c37d8f95cfa64d282370efdafd2 diff --git a/test/core/http/response_corpus/35f0c561297cfc840ddaeebb9fc61091f4eadece b/test/core/http/corpus/35f0c561297cfc840ddaeebb9fc61091f4eadece index 8df43e4dce..8df43e4dce 100644 --- a/test/core/http/response_corpus/35f0c561297cfc840ddaeebb9fc61091f4eadece +++ b/test/core/http/corpus/35f0c561297cfc840ddaeebb9fc61091f4eadece diff --git a/test/core/http/response_corpus/39b19c41ba537f37511eff7727733715db432e76 b/test/core/http/corpus/39b19c41ba537f37511eff7727733715db432e76 index fefa4512a8..fefa4512a8 100644 --- a/test/core/http/response_corpus/39b19c41ba537f37511eff7727733715db432e76 +++ b/test/core/http/corpus/39b19c41ba537f37511eff7727733715db432e76 diff --git a/test/core/http/response_corpus/3e3c4756d5e40b5aa250954cbac86b826e70a7ac b/test/core/http/corpus/3e3c4756d5e40b5aa250954cbac86b826e70a7ac index b967b57614..b967b57614 100644 --- a/test/core/http/response_corpus/3e3c4756d5e40b5aa250954cbac86b826e70a7ac +++ b/test/core/http/corpus/3e3c4756d5e40b5aa250954cbac86b826e70a7ac diff --git a/test/core/http/response_corpus/3fb034e66ee5494a67acae1b4e6ff64ba92a2046 b/test/core/http/corpus/3fb034e66ee5494a67acae1b4e6ff64ba92a2046 index 7d20266703..7d20266703 100644 --- a/test/core/http/response_corpus/3fb034e66ee5494a67acae1b4e6ff64ba92a2046 +++ b/test/core/http/corpus/3fb034e66ee5494a67acae1b4e6ff64ba92a2046 diff --git a/test/core/http/response_corpus/487725eb38511c79a9340bf4560a1411061fa6fa b/test/core/http/corpus/487725eb38511c79a9340bf4560a1411061fa6fa index c59c4d2246..c59c4d2246 100644 --- a/test/core/http/response_corpus/487725eb38511c79a9340bf4560a1411061fa6fa +++ b/test/core/http/corpus/487725eb38511c79a9340bf4560a1411061fa6fa diff --git a/test/core/http/response_corpus/4b1f1f79a0bfa3f942479dd5f8edb59a7c257c55 b/test/core/http/corpus/4b1f1f79a0bfa3f942479dd5f8edb59a7c257c55 index 49d1c8f1d2..49d1c8f1d2 100644 --- a/test/core/http/response_corpus/4b1f1f79a0bfa3f942479dd5f8edb59a7c257c55 +++ b/test/core/http/corpus/4b1f1f79a0bfa3f942479dd5f8edb59a7c257c55 diff --git a/test/core/http/response_corpus/5028c56a5116a186b7343ff59567b47347a0796d b/test/core/http/corpus/5028c56a5116a186b7343ff59567b47347a0796d index 5f2c4dfef0..5f2c4dfef0 100644 --- a/test/core/http/response_corpus/5028c56a5116a186b7343ff59567b47347a0796d +++ b/test/core/http/corpus/5028c56a5116a186b7343ff59567b47347a0796d diff --git a/test/core/http/response_corpus/5b6292bdf009b0daecbc90b85cca30a88c36eec5 b/test/core/http/corpus/5b6292bdf009b0daecbc90b85cca30a88c36eec5 index 9a15ab025f..9a15ab025f 100644 --- a/test/core/http/response_corpus/5b6292bdf009b0daecbc90b85cca30a88c36eec5 +++ b/test/core/http/corpus/5b6292bdf009b0daecbc90b85cca30a88c36eec5 diff --git a/test/core/http/response_corpus/657368df512ca6294b9df16adf935a3f374a8be2 b/test/core/http/corpus/657368df512ca6294b9df16adf935a3f374a8be2 index 1f14f69103..1f14f69103 100644 --- a/test/core/http/response_corpus/657368df512ca6294b9df16adf935a3f374a8be2 +++ b/test/core/http/corpus/657368df512ca6294b9df16adf935a3f374a8be2 diff --git a/test/core/http/response_corpus/81f59a12b458ec3604035cb962165c604d1355e6 b/test/core/http/corpus/81f59a12b458ec3604035cb962165c604d1355e6 index d4223ccf81..d4223ccf81 100644 --- a/test/core/http/response_corpus/81f59a12b458ec3604035cb962165c604d1355e6 +++ b/test/core/http/corpus/81f59a12b458ec3604035cb962165c604d1355e6 diff --git a/test/core/http/response_corpus/8f41c50e88ee8c17ecad3d41d63d38fb12aca0b9 b/test/core/http/corpus/8f41c50e88ee8c17ecad3d41d63d38fb12aca0b9 index 99e2c48bbd..99e2c48bbd 100644 --- a/test/core/http/response_corpus/8f41c50e88ee8c17ecad3d41d63d38fb12aca0b9 +++ b/test/core/http/corpus/8f41c50e88ee8c17ecad3d41d63d38fb12aca0b9 diff --git a/test/core/http/response_corpus/97e4499d450c95660de86747f527e670f2012548 b/test/core/http/corpus/97e4499d450c95660de86747f527e670f2012548 index b1927fbf63..b1927fbf63 100644 --- a/test/core/http/response_corpus/97e4499d450c95660de86747f527e670f2012548 +++ b/test/core/http/corpus/97e4499d450c95660de86747f527e670f2012548 diff --git a/test/core/http/response_corpus/aa3bbb876eafa8ad8ca4ff2eabc6dd94341d2441 b/test/core/http/corpus/aa3bbb876eafa8ad8ca4ff2eabc6dd94341d2441 index 837449dda3..837449dda3 100644 --- a/test/core/http/response_corpus/aa3bbb876eafa8ad8ca4ff2eabc6dd94341d2441 +++ b/test/core/http/corpus/aa3bbb876eafa8ad8ca4ff2eabc6dd94341d2441 diff --git a/test/core/http/response_corpus/b04fea5c041c707db0ad9c09a81672557b52cc47 b/test/core/http/corpus/b04fea5c041c707db0ad9c09a81672557b52cc47 index 10905bed39..10905bed39 100644 --- a/test/core/http/response_corpus/b04fea5c041c707db0ad9c09a81672557b52cc47 +++ b/test/core/http/corpus/b04fea5c041c707db0ad9c09a81672557b52cc47 diff --git a/test/core/http/response_corpus/c55ce9995b002e88a102ae2891a71e8bacb346c8 b/test/core/http/corpus/c55ce9995b002e88a102ae2891a71e8bacb346c8 index 2704e4fb39..2704e4fb39 100644 --- a/test/core/http/response_corpus/c55ce9995b002e88a102ae2891a71e8bacb346c8 +++ b/test/core/http/corpus/c55ce9995b002e88a102ae2891a71e8bacb346c8 diff --git a/test/core/http/response_corpus/ca5a0c00b8969310acb73d15ad0d0c602f1bd0c2 b/test/core/http/corpus/ca5a0c00b8969310acb73d15ad0d0c602f1bd0c2 index f5cbbc69e7..f5cbbc69e7 100644 --- a/test/core/http/response_corpus/ca5a0c00b8969310acb73d15ad0d0c602f1bd0c2 +++ b/test/core/http/corpus/ca5a0c00b8969310acb73d15ad0d0c602f1bd0c2 diff --git a/test/core/http/response_corpus/d4c3e4cf5d035596433c30eaabbd2b2925f4b453 b/test/core/http/corpus/d4c3e4cf5d035596433c30eaabbd2b2925f4b453 index be33d81102..be33d81102 100644 --- a/test/core/http/response_corpus/d4c3e4cf5d035596433c30eaabbd2b2925f4b453 +++ b/test/core/http/corpus/d4c3e4cf5d035596433c30eaabbd2b2925f4b453 diff --git a/test/core/http/response_corpus/d936dad71c129cf659097dc3db64550c4dd467f4 b/test/core/http/corpus/d936dad71c129cf659097dc3db64550c4dd467f4 index ccf918751d..ccf918751d 100644 --- a/test/core/http/response_corpus/d936dad71c129cf659097dc3db64550c4dd467f4 +++ b/test/core/http/corpus/d936dad71c129cf659097dc3db64550c4dd467f4 diff --git a/test/core/http/response_corpus/fc5d4b9117ba9e87388174aee4f4970bdfe8d066 b/test/core/http/corpus/fc5d4b9117ba9e87388174aee4f4970bdfe8d066 index 06f1a3b800..06f1a3b800 100644 --- a/test/core/http/response_corpus/fc5d4b9117ba9e87388174aee4f4970bdfe8d066 +++ b/test/core/http/corpus/fc5d4b9117ba9e87388174aee4f4970bdfe8d066 diff --git a/test/core/http/request_corpus/request1.txt b/test/core/http/corpus/request1.txt index 16a750fbf9..16a750fbf9 100644 --- a/test/core/http/request_corpus/request1.txt +++ b/test/core/http/corpus/request1.txt diff --git a/test/core/http/response_corpus/response1.txt b/test/core/http/corpus/response1.txt index a17139982e..a17139982e 100644 --- a/test/core/http/response_corpus/response1.txt +++ b/test/core/http/corpus/response1.txt diff --git a/test/core/http/request_fuzzer.c b/test/core/http/fuzzer.c index ff960484db..0aa95ee9e4 100644 --- a/test/core/http/request_fuzzer.c +++ b/test/core/http/fuzzer.c @@ -36,15 +36,15 @@ #include <grpc/support/alloc.h> -#include "src/core/httpcli/parser.h" +#include "src/core/http/parser.h" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { - grpc_httpcli_parser parser; - grpc_httpcli_parser_init(&parser); + grpc_http_parser parser; + grpc_http_parser_init(&parser); gpr_slice slice = gpr_slice_from_copied_buffer((const char *)data, size); - grpc_httpcli_parser_parse(&parser, slice); - grpc_httpcli_parser_eof(&parser); + grpc_http_parser_parse(&parser, slice); + grpc_http_parser_eof(&parser); gpr_slice_unref(slice); - grpc_httpcli_parser_destroy(&parser); + grpc_http_parser_destroy(&parser); return 0; } diff --git a/test/core/http/response_fuzzer.c b/test/core/http/response_fuzzer.c deleted file mode 100644 index ff960484db..0000000000 --- a/test/core/http/response_fuzzer.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * - * Copyright 2015-2016, Google Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - */ - -#include <stdint.h> -#include <string.h> - -#include <grpc/support/alloc.h> - -#include "src/core/httpcli/parser.h" - -int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { - grpc_httpcli_parser parser; - grpc_httpcli_parser_init(&parser); - gpr_slice slice = gpr_slice_from_copied_buffer((const char *)data, size); - grpc_httpcli_parser_parse(&parser, slice); - grpc_httpcli_parser_eof(&parser); - gpr_slice_unref(slice); - grpc_httpcli_parser_destroy(&parser); - return 0; -} |