Recently,I start to read nginx source code.
I chose nginx/1.3.6 a relatively new version。
When I read file ngx_log.c, the function ngx_log_errno() confused me .
There may be some bugs in the following codes :
238 if (buf > last - 50) {
239
240 /* leave a space for an error code */
241
242 buf = last - 50;
243 *buf++ = '.';
244 *buf++ = '.';
245 *buf++ = '.';
246 }
Althoug,I am not sure about my judgment,valgrind reports invalid write on
line 243.
Expect reply E-mail.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel