summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.3 (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* stucture -> structure;jmc2010-01-251-3/+3
|
* New options 'S', as a shorthand for the options most suitable as anotto2010-01-131-2/+4
| | | | extra safeguard (FGJ). Idea from deraadt@; ok deraadt@ dlg@
* rewrite the history section, prompted by Paul Stoeber; ok deraadt@ jmc@otto2009-10-101-25/+28
|
* kill whitespace at eol;jmc2009-02-131-2/+2
|
* decribe 'F' better and mention flags are debugging aids; ok tedu@ jmc@otto2009-02-131-8/+10
|
* Remove mprotecting of struct dir_info introduced in previous commitdjm2008-12-301-9/+2
| | | | | | | (MALLOC_OPTIONS=L). It was too slow to turn on by default, and we don't do optional security. requested by deraadt@ grumbling ok otto@
* extra paranoia for malloc(3):djm2008-12-291-2/+9
| | | | | | | | | | | | | | | | Move all runtime options into a structure that is made read-only (via mprotect) after initialisation to protect against attacks that overwrite options to turn off malloc protections (e.g. use-after-free) Allocate the main bookkeeping data (struct dir_info) using mmap(), thereby giving it an unpredictable address. Place a PROT_NONE guard page on either side to further frustrate attacks on it. Add a new 'L' option that maps struct dir_info PROT_NONE except when in the allocator code itself. Makes attacks on it basically impossible. feedback tedu deraadt otto canacar ok otto
* Fix typo, okay jmc@.pedro2008-11-261-3/+3
|
* move allocations between half a page and a page as close to the end ofotto2008-11-201-2/+3
| | | | | the page as possible (i.e. make malloc option P a default). ok art@ millert@ krw@
* fix markup of example line and description of G flag; partly from andotto2008-11-021-5/+4
| | | | ok jmc@
* remove distinction between warnings and errors, ok deraadt@ djm@otto2008-11-021-26/+18
|
* small cleanup of error/warning stringsotto2008-08-071-3/+3
|
* man page bits for new malloc; ok jmc@otto2008-07-281-43/+33
|
* kill an Xr to a non-existent man page, ulimit(1);jmc2008-05-201-5/+3
|
* remove recalloc(3); it is buggy and impossible to repair without bigotto2008-05-191-25/+3
| | | | costs; ok jmc@ for the man page bits; ok millert@ deraadt@
* no need to talk about bits; ok millert jmcderaadt2007-09-051-3/+3
|
* Update free(3) section--we use mmap()/munmap(), not brk().millert2007-09-031-4/+6
| | | | Based on a diff from Mike Belopuhov. OK jmc@
* add recaloc(3)millert2007-09-031-3/+25
|
* Clarify the example about avoiding overflow. OK ray@ deraadt@millert2007-08-081-3/+3
|
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* Fix 'double by a factor of two' and make cache options a bit morepedro2006-06-061-4/+4
| | | | descriptive while at it, input and okay jmc@
* Use SIZE_MAX instead of SIZE_T_MAX, the latter is not POSIX andotto2006-04-021-2/+2
| | | | remove redundant check on size. ok millert@ deraadt@
* Add warning about malloc(num * size) and recommend calloc() instead,ray2006-03-261-5/+40
| | | | | | | | or if malloc must be used suggest check. Get rid of "one". OK deraadt@ and jmc@, OK kjell@ to earlier version with "one"s.
* missing auxillary verbjakemsr2006-01-181-2/+2
| | | | "yes, that is correct." jmc@ (a while back)
* - typos, punctuation, layout, macro tweaksjaredy2005-07-261-4/+11
| | | | | | - break long lines ok jmc
* no need to insert spacing between list members;jmc2005-06-071-13/+1
|
* adding pointer protection to 'G' was too heavyweight. Since malloc guardtedu2005-06-071-3/+6
| | | | should be generally usable, split this out into option 'P'. ok deraadt
* add a note describing latest guard featuretedu2005-05-241-1/+3
|
* kill dead .Xr to memory(3);jmc2004-07-021-3/+2
| | | | from kjell@
* punctuate variable; okay jmc@.espie2004-02-091-2/+2
|
* H comes before J;jmc2004-02-041-6/+6
|
* 'F'reeguard doc, as reported missing by brad. nit free thanks to jmctedu2004-02-021-1/+8
|
* wording improvements from Brian Poole;jmc2003-11-251-5/+4
| | | | kill a .Pp before a display;
* by popular demand, malloc guard pages. insert an unreadable/unwriteabletedu2003-10-161-1/+7
| | | | | | | | page after each page size allocation to detect overrun. this is somewhat electric fence like, while attempting to be mostly usable in production. also, use tdeval's chunk randomization code. enabled with the G option. ok deraadt and co.
* It is safe to pass free() a NULL pointer since C89; update example tomillert2003-09-261-3/+2
| | | | this effect. OK deraadt@ pvalchev@
* improve example even morederaadt2003-09-251-3/+4
|
* expand on the realloc no-no section to include adjusting a length beforetedu2003-09-181-6/+12
| | | | the allocation. ok deraadt@ markus@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* - section reorderjmc2003-06-011-8/+8
| | | | | - merge COMPATIBILITY - kill whitespace at EOL
* Delete reference to /usr/share/doc/papers/malloc.ascii.gz as we do notkrw2003-05-141-2/+1
| | | | | | have it. We don't even have the directory /usr/share/doc/papers. ok millert@.
* typos;jmc2003-01-211-3/+3
| | | | ok deraadt@
* document how malloc(0) blobbies are stored, and their characterderaadt2001-12-051-1/+6
|
* Comment out info on U (utrace) malloc option since we don't support itmillert2001-11-051-8/+8
| | | | on OpenBSD.
* Grammar. Thanks markus@tdeval2001-10-301-2/+2
|
* mprotect allocations sized at 0 bytes. This will cause a fault for accesstdeval2001-10-301-1/+3
| | | | | to such, permitting them to be discovered, instead of exploited as the ssh crc insertion detector was. Idea by theo, written by tdeval.
* Clarify; gluk@ptci.ruaaron2000-10-251-2/+2
|
* - Formatting repairs and standardizations.aaron2000-04-201-77/+104
| | | | | - s/MESSAGES/DIAGNOSTICS/, and put message descriptions in a nice list. - Talk more about how using malloc() in signal handlers is bad.
* Clarify and mention that errno is set to ENOMEM on failure of malloc(),pjanzen2000-01-191-5/+11
| | | | calloc(), and realloc(). Idea from NetBSD.
* Tweaks; millert@aaron1999-11-101-8/+9
|
* Merge calloc(3) man page into malloc.3; as suggested by millert@aaron1999-11-091-18/+39
|