aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2017-03-31 13:28:54 -0700
committerGravatar GitHub <noreply@github.com>2017-03-31 13:28:54 -0700
commit2035c2b48a00f13af4239e8be302d90737cd9657 (patch)
tree20c169eddd8ae36733bfd1485beed95c050e7c1e /src/core/lib
parent94d8614b744d8b1feb411035bda7952349e87b8e (diff)
parentfde5dbb6815314abac889faa7915191457d275e1 (diff)
Merge pull request #10375 from dgquintas/fix_fuzzer_961
Fix oss-fuzz/961
Diffstat (limited to 'src/core/lib')
-rw-r--r--src/core/lib/channel/http_server_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/channel/http_server_filter.c b/src/core/lib/channel/http_server_filter.c
index 8d3c488ea0..b1f26b2696 100644
--- a/src/core/lib/channel/http_server_filter.c
+++ b/src/core/lib/channel/http_server_filter.c
@@ -215,7 +215,7 @@ static grpc_error *server_filter_incoming_metadata(grpc_exec_ctx *exec_ctx,
size_t path_length = GRPC_SLICE_LENGTH(path_slice);
/* offset of the character '?' */
size_t offset = 0;
- for (offset = 0; *path_ptr != k_query_separator && offset < path_length;
+ for (offset = 0; offset < path_length && *path_ptr != k_query_separator;
path_ptr++, offset++)
;
if (offset < path_length) {