[nginx] gRPC: fixed parsing response headers split on CONTINUATION frames.
Sergey Kandaurov
pluknet at nginx.com
Mon Mar 19 13:45:15 UTC 2018
details: http://hg.nginx.org/nginx/rev/413189f03c8d
branches:
changeset: 7240:413189f03c8d
user: Sergey Kandaurov <pluknet at nginx.com>
date: Mon Mar 19 16:42:56 2018 +0300
description:
gRPC: fixed parsing response headers split on CONTINUATION frames.
diffstat:
src/http/modules/ngx_http_grpc_module.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 400a3412b1e3 -r 413189f03c8d src/http/modules/ngx_http_grpc_module.c
--- a/src/http/modules/ngx_http_grpc_module.c Mon Mar 19 16:28:23 2018 +0300
+++ b/src/http/modules/ngx_http_grpc_module.c Mon Mar 19 16:42:56 2018 +0300
@@ -2953,7 +2953,7 @@ ngx_http_grpc_parse_fragment(ngx_http_re
ctx->name.data[ctx->name.len] = '\0';
} else {
- ngx_memcpy(ctx->field_end, p, size);
+ ctx->field_end = ngx_cpymem(ctx->field_end, p, size);
ctx->name.data[ctx->name.len] = '\0';
}
@@ -3062,7 +3062,7 @@ ngx_http_grpc_parse_fragment(ngx_http_re
ctx->value.data[ctx->value.len] = '\0';
} else {
- ngx_memcpy(ctx->field_end, p, size);
+ ctx->field_end = ngx_cpymem(ctx->field_end, p, size);
ctx->value.data[ctx->value.len] = '\0';
}
More information about the nginx-devel
mailing list