Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Guard against failed allocation during binary upgrade

Maxim Dounin
March 16, 2013 08:22PM
Hello!

On Sat, Mar 16, 2013 at 07:58:38AM +0400, Ruslan Ermilov wrote:

> On Fri, Mar 15, 2013 at 02:27:57PM -0700, Piotr Sikora wrote:
> > Hey,
> > pretty obvious patch attached ;)
>
> Your patch obviously looks good. :)

Please commit then.

> > diff -r a29c574d61fa src/core/nginx.c
> > --- a/src/core/nginx.c Fri Mar 15 20:00:49 2013 +0000
> > +++ b/src/core/nginx.c Fri Mar 15 14:22:04 2013 -0700
> > @@ -594,6 +594,9 @@
> > var = ngx_alloc(sizeof(NGINX_VAR)
> > + cycle->listening.nelts * (NGX_INT32_LEN + 1) + 2,
> > cycle->log);
> > + if (var == NULL) {
> > + return NGX_INVALID_PID;
> > + }
> >
> > p = ngx_cpymem(var, NGINX_VAR "=", sizeof(NGINX_VAR));
> >

--
Maxim Dounin
http://nginx.org/en/donation.html

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

[PATCH] Guard against failed allocation during binary upgrade

Piotr Sikora 789 March 15, 2013 05:30PM

Re: [PATCH] Guard against failed allocation during binary upgrade

Ruslan Ermilov 363 March 16, 2013 12:00AM

Re: [PATCH] Guard against failed allocation during binary upgrade

Maxim Dounin 302 March 16, 2013 08:22PM

Re: [PATCH] Guard against failed allocation during binary upgrade

Ruslan Ermilov 383 March 18, 2013 03:16AM



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

Online Users

Guests: 242
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