﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1618	Potential infinity cycle in ngx_http_upstream_send_request_body()	SvyatoslavRazmyslov@…		"I have found a bug using [https://www.viva64.com/en/pvs-studio/ PVS-Studio] static analyzer for C/C++/C#.

V1021 The 'cl' variable is assigned the same value on several loop iterations. '''ngx_http_upstream.c''' 2138


{{{
if (r->request_body->bufs) {
  for (cl = out; cl->next; cl = out->next) { /* void */ } // <= bug
  cl->next = r->request_body->bufs;
  r->request_body->bufs = NULL;
}
}}}

Corrected code:


{{{
for (cl = out; cl->next; cl = cl->next) { /* void */ }
}}}
"	defect	closed	minor		nginx-core	1.15.x	fixed		razmyslov@…		Mercurial default branch.
