mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: clear tag in ngx_buf_t to avoid double free
This commit is contained in:
parent
e7e21f9b40
commit
cf1eba6118
11
patches/nginx-1.21.4-clear_ngx_buf_tag.patch
Normal file
11
patches/nginx-1.21.4-clear_ngx_buf_tag.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -aNur nginx-1.21.4/src/core/ngx_buf.c nginx-1.21.4-patched/src/core/ngx_buf.c
|
||||
--- nginx-1.21.4/src/core/ngx_buf.c 2021-11-05 13:06:14.000000000 +0800
|
||||
+++ nginx-1.21.4-patched/src/core/ngx_buf.c 2022-10-27 21:45:48.943152558 +0800
|
||||
@@ -213,6 +213,8 @@
|
||||
break;
|
||||
}
|
||||
|
||||
+ cl->buf->tag = 0;
|
||||
+
|
||||
cl->buf->pos = cl->buf->start;
|
||||
cl->buf->last = cl->buf->start;
|
Loading…
x
Reference in New Issue
Block a user