Skip to content

Commit

Permalink
Merge pull request grpc#10375 from dgquintas/fix_fuzzer_961
Browse files Browse the repository at this point in the history
Fix oss-fuzz/961
  • Loading branch information
dgquintas authored Mar 31, 2017
2 parents 94d8614 + fde5dbb commit 2035c2b
Show file tree
Hide file tree
Showing 4 changed files with 16,625 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/channel/http_server_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading

0 comments on commit 2035c2b

Please sign in to comment.