aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2017-03-30 11:39:30 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2017-03-30 11:39:30 -0700
commitfde5dbb6815314abac889faa7915191457d275e1 (patch)
tree82f712cbfe30a4201e2013b57da4398e79948eea /src/core
parent5692dfd33937ba8de1ef8f9a2c7e066cfe224ef4 (diff)
Fixed oss-fuzz/961
Diffstat (limited to 'src/core')
-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) {