Re: memory pages nulling when releasing
- From: Dan Lukes <dan@xxxxxxxxx>
- Date: Tue, 20 Jun 2006 21:19:01 +0200
Jason Evans napsal/wrote, On 06/20/06 19:43:
BTW, Z nor J doesn't imply 'R' despite of text of manual page.
The man page looks accurate to me. What aspect of the descriptions of 'J' and 'Z' do you think is incorrect?
From manual page:
=======================
J ...
This options also sets the ``R'' option.
...
Z This option implicitly sets the ``J'' and ``R'' options,
=======================
From libc/stdlib/malloc.c (the lines containing malloc_realloc + some lines around)
=======================
static int malloc_realloc;
...
case 'r': malloc_realloc = 0; break;
case 'R': malloc_realloc = 1; break;
case 'j': malloc_junk = 0; break;
...
if (!malloc_realloc && /* Unless we have to, */
size <= osize && /* .. or are too small, ...
if (!malloc_realloc && /* Unless we have to, */
size <= osize && /* ..or are too small, */
=======================
The malloc_realloc seems to be set on one place only - when R/r present. Then it is used only. I see no dependency to J nor Z
I send no PR because I have submitted several more important PR's which are untouched for months. I don't want to overload committers nor PR database.
Dan
--
Dan Lukes SISAL MFF UK
AKA: dan@xxxxxxxxx, dan@xxxxxxxxxx,dan@xxxxxxxxxxxxxxxxx
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: memory pages nulling when releasing
- From: Jason Evans
- Re: memory pages nulling when releasing
- References:
- Re: memory pages nulling when releasing
- From: R. B. Rid***
- Re: memory pages nulling when releasing
- From: Dan Lukes
- Re: memory pages nulling when releasing
- From: Nick Withers
- Re: memory pages nulling when releasing
- From: Dan Lukes
- Re: memory pages nulling when releasing
- From: Giorgos Keramidas
- Re: memory pages nulling when releasing
- From: Jason Evans
- Re: memory pages nulling when releasing
- Prev by Date: Re: memory pages nulling when releasing
- Next by Date: Re: memory pages nulling when releasing
- Previous by thread: Re: memory pages nulling when releasing
- Next by thread: Re: memory pages nulling when releasing
- Index(es):