Welcome! Log In Create A New Profile

Advanced

Re: [BUG] Core dump for invalid proxy url

Maxim Dounin
July 28, 2011 06:00AM
Hello!

On Thu, Jul 28, 2011 at 10:29:28AM +0800, lanshun zhou wrote:

> src/http/modules/ngx_http_proxy_module.c:645 in ngx_http_proxy_eval
>
> For some service the proxy url is specified by user from arguments. after
> ngx_http_script_run, proxy.len may be smaller than "http://" without the
> terminating '\0'. For example, {len = 4, data = "http://abcdefg"}. It passes
> the
> schema check, but url.url.len = proxy.len - 7 becomes a very big number.
> the process will core during later memcpy.

Good catch, thank you.

Maxim Dounin

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[BUG] Core dump for invalid proxy url

lanshun zhou 2265 July 27, 2011 10:30PM

Re: [BUG] Core dump for invalid proxy url

Maxim Dounin 994 July 28, 2011 06:00AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready