Cause problem in nginx-1.13.12 and 1.14.0, r->request_body has been inited BEFORE calling ngx_http_spdy_read_request_body in src/http/ngx_http_request_body.c.
So ngx_http_spdy_init_request_body will not run, and r->request_body->buf will be 0
If the patch for src/http/ngx_http_request_body.c still AFTER these codes:
The r->request_body has been inited beforce ngx_http_spdy_read_request_body called,
ngx_http_spdy_init_request_body will not run, and r->request_body->buf will be 0
https://github.com/cloudflare/sslconfig/blob/master/patches/nginx__1.13.0_http2_spdy.patch
Nginx SPDY POST request will cause nginx segment fault in 1.14.0 and nginx-1.13.12
src/http/ngx_http_spdy.c:ngx_http_spdy_state_read_data
buf->last = ngx_cpymem(buf->last, pos, size);
src/http/ngx_http_spdy.c:ngx_http_spdy_read_request_body
Cause problem in nginx-1.13.12 and 1.14.0, r->request_body has been inited BEFORE calling ngx_http_spdy_read_request_body in src/http/ngx_http_request_body.c. So ngx_http_spdy_init_request_body will not run, and r->request_body->buf will be 0
If the patch for src/http/ngx_http_request_body.c still AFTER these codes:
The r->request_body has been inited beforce ngx_http_spdy_read_request_body called, ngx_http_spdy_init_request_body will not run, and r->request_body->buf will be 0
https://github.com/cloudflare/sslconfig/blob/master/patches/nginx__1.13.0_http2_spdy.patch
http://lxr.nginx.org/source/src/http/ngx_http_request_body.c
0070-0073Which is different with nginx 1.12.2
http://lxr.nginx.org/source/src/http/ngx_http_request_body.c?v=nginx-1.12.2
So, I use "r->request_body->buf" replace "r->request_body"
Or you can move the following code BEFORE r->request_body has been inited