Welcome! Log In Create A New Profile

Advanced

Re: proposed solution for ticket 686 (With some condition, ngx_palloc() function will alloc a illegal memory address)

Maxim Dounin
December 10, 2020 12:38PM
Hello!

On Thu, Dec 10, 2020 at 04:17:01PM +0000, Chris Newton wrote:

> Ticket 686 is marked as 'wontfix' as the constraints on the size of the
> memory pool are documented.
>
> I'd like to suggest that the constraints are enforced by the code to
> prevent issues. eg.,

Thanks for your suggestion. This was considered previously, and
the answer is no, as such enforcement introduces generally
unneeded run-time code. Futher, in your particular variant it
masks bugs in the calling code instead of encouraging the authors
to fix them.

Instead, consider introducing appropriate checking during
configuration parsing if you provide your own pools with
configurable sizes (and provide appropriate compiled-in sizes if
there are any).

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

proposed solution for ticket 686 (With some condition, ngx_palloc() function will alloc a illegal memory address)

Chris Newton 327 December 10, 2020 11:18AM

Re: proposed solution for ticket 686 (With some condition, ngx_palloc() function will alloc a illegal memory address)

Maxim Dounin 148 December 10, 2020 12:38PM



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

Online Users

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