[nginx] svn commit: r5155 - in branches/stable-1.2: . src/http
mdounin at mdounin.ru
mdounin at mdounin.ru
Fri Mar 29 17:19:11 UTC 2013
Author: mdounin
Date: 2013-03-29 17:19:11 +0000 (Fri, 29 Mar 2013)
New Revision: 5155
URL: http://trac.nginx.org/nginx/changeset/5155/nginx
Log:
Merge of r5083: fixed potential segfault in keepalive handler.
Fixed potential segfault in ngx_http_keepalive_handler().
In case of error in the read event handling we close a connection
by calling ngx_http_close_connection(), that also destroys connection
pool. Thereafter, an attempt to free a buffer (added in r4892) that
was allocated from the pool could cause SIGSEGV and is meaningless
as well (the buffer already freed with the pool).
Modified:
branches/stable-1.2/
branches/stable-1.2/src/http/ngx_http_request.c
Index: branches/stable-1.2
===================================================================
--- branches/stable-1.2 2013-03-29 17:17:45 UTC (rev 5154)
+++ branches/stable-1.2 2013-03-29 17:19:11 UTC (rev 5155)
Property changes on: branches/stable-1.2
___________________________________________________________________
Modified: svn:mergeinfo
## -1 +1 ##
-/trunk:4611-4632,4636-4657,4671-4672,4674-4676,4682,4684-4699,4704-4706,4713,4736-4741,4754,4756-4771,4775,4777-4780,4782-4785,4795,4811-4820,4822-4824,4828-4835,4840-4844,4865-4872,4885-4887,4890-4896,4913-4925,4933-4934,4939,4944-4949,4961-4969,4973-4974,4976-4994,4997,4999-5005,5011-5025,5027-5031,5066,5070-5071,5078,5082
+/trunk:4611-4632,4636-4657,4671-4672,4674-4676,4682,4684-4699,4704-4706,4713,4736-4741,4754,4756-4771,4775,4777-4780,4782-4785,4795,4811-4820,4822-4824,4828-4835,4840-4844,4865-4872,4885-4887,4890-4896,4913-4925,4933-4934,4939,4944-4949,4961-4969,4973-4974,4976-4994,4997,4999-5005,5011-5025,5027-5031,5066,5070-5071,5078,5082-5083
\ No newline at end of property
Modified: branches/stable-1.2/src/http/ngx_http_request.c
===================================================================
--- branches/stable-1.2/src/http/ngx_http_request.c 2013-03-29 17:17:45 UTC (rev 5154)
+++ branches/stable-1.2/src/http/ngx_http_request.c 2013-03-29 17:19:11 UTC (rev 5155)
@@ -2743,6 +2743,7 @@
if (n == NGX_AGAIN) {
if (ngx_handle_read_event(rev, 0) != NGX_OK) {
ngx_http_close_connection(c);
+ return;
}
/*
More information about the nginx-devel
mailing list