summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2009-01-10The process number is longer used to replace trailing 'Xs'.Tobias Stoeckmann
ok jmc, millert
2009-01-03reintroduce extra malloc protections, but avoiding the use ofDamien Miller
PAGE_(SIZE|SHIFT|MASK) defines that evaluate to variables on the sparc architecture; ok otto@ tested on my reanimated ss20
2008-12-31PAGE_SIZE is not a valid symbol to use in that way. In particular,Theo de Raadt
on sparc, it expands to something that just plain does not work, because the page size can be variable. Sorry we didn't spot this before. Backing it all out to allow sparc to build; please find a different way to fix it.
2008-12-30Remove mprotecting of struct dir_info introduced in previous commitDamien Miller
(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@
2008-12-29extra paranoia for malloc(3):Damien Miller
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
2008-12-27Fix file descriptor leak in fts_children(); okay dhill@, millert@,Pedro Martelletto
tedu@, thib@.
2008-12-23repair the ARC4 story; ok jmc djm millertTheo de Raadt
2008-12-23ddb.console does not override machdep.kbdreset, so don't say it does;Jason McIntyre
2008-12-22document yp_maplist(); from Ingo SchwarzeJason McIntyre
ok deraadt
2008-12-22The example for detecting malicious PTR records could be easily misinterpreted.Jacek Masiulaniec
Make it less ambiguous; ok gilles@ claudio@
2008-12-20Add man page for wcstol and friends.Mark Kettenis
ok jmc@
2008-12-17Document ENOBUFS for writev(2).Ray Lai
Okay claudio, deraadt.
2008-12-15shave off more bytes than you expect by declaring a few const local arraysOtto Moerbeek
as static const
2008-12-12__isinff and __isnanfMartynas Venckus
2008-12-12do the same as was done in mi version: do not include math.h, since isinf,Martynas Venckus
and isnan would expand to macros and compatibility aliases won't work
2008-12-12strcpy -> strlcpy; ok mbalmer@ martynas@Otto Moerbeek
2008-12-12- document and mlink frexpf, ldexpf, modff added 13 years agoMartynas Venckus
- document frexpl, ldexpl added recently a tweak and ok jmc@
2008-12-10no spaces allowed in the macro arguments. completely insanity!Theo de Raadt
2008-12-10use sys/cdefs.h; pointed out by theoMartynas Venckus
2008-12-10use sys/cdefs.hTheo de Raadt
2008-12-09these were not neededMartynas Venckus
2008-12-09ditto frexpl and ldexplMartynas Venckus
2008-12-09alias fabsl to fabs on these archsMartynas Venckus
2008-12-09remove unusedMartynas Venckus
2008-12-09- add long double signbitMartynas Venckus
- make long double versions weak aliases to double versions, on archs where long doubles are 64 bits - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - bump major ok millert@
2008-12-09bugfix update to gdtoa 2008-10-10. ok millert@, tested by manyMartynas Venckus
2008-12-09Commit requested by marco:Otto Moerbeek
Add nonblock support for xdrrecs ok millert blambert & otto; from NetBSD. libc bump to follow soon.
2008-12-09fix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soonOtto Moerbeek
2008-12-07Document that ethers_aton returns NULL for invalid addresses.Paul de Weerd
Suggested by and ok claudio@, ok jmc@
2008-11-26Add unix(4) to SEE ALSO.Michael Knudsen
ok deraadt
2008-11-26Fix typo, okay jmc@.Pedro Martelletto
2008-11-24Correctly jump over routing headers and calculate the size of the if_dataClaudio Jeker
struct in the if_msghdr instead of using sizeof() blindly. This allows us to grow if_data without causing issues for the getifaddrs() users. OK deraadt@ (who needs this for some cool upcomming stuff)
2008-11-21- make the .Nd of link(2) and symlink(2) a bit more consistentJasper Lievisse Adriaanse
(train trips are soo boring...) ok jmc@
2008-11-20move allocations between half a page and a page as close to the end ofOtto Moerbeek
the page as possible (i.e. make malloc option P a default). ok art@ millert@ krw@
2008-11-20Reduce the leeway malloc allows when moving allocations to the end ofOtto Moerbeek
a page to 0. P default will be changed in a separate commit. ok millert@ art@ krw@
2008-11-13To allow for easier playing with more strict settings introduceOtto Moerbeek
a separate symbolic constant for the leeway we allow when moving allocations towards the end of a page. No functional change.
2008-11-12avoid a few strlen calls for constant strings; prompted by tg; ok djm@Otto Moerbeek
2008-11-09tweak previous;Jason McIntyre
2008-11-08Document the ddb.trigger sysctl.Chris Kuethe
feedback and ok mpf@, deraadt@
2008-11-06if the freeprot flag (F) is set, do not do delayed frees for chunksOtto Moerbeek
(might catch errors closer to the trouble spot) and junk fill pages just before reuse instead of immediate (we can't access the page anyway) since we set PROT_NONE in the F case. ok djm@
2008-11-02fix markup of example line and description of G flag; partly from andOtto Moerbeek
ok jmc@
2008-11-02remove distinction between warnings and errors, ok deraadt@ djm@Otto Moerbeek
2008-10-31Pass a pointer to warn2 so the warn2 == IN_ALL would not be anTodd C. Miller
always-false condition. From FreeBSD (delphij).
2008-10-29if MALLOC_STATS is defined, record how many "cheap reallocs" wereOtto Moerbeek
tried and how many actually succeeded.
2008-10-24some SEE ALSO additions from Ingo Schwarze;Jason McIntyre
2008-10-23Reword description of tm_zone and tm_gmtoff fieldsPhilip Guenthe
Prompted by millert@; ok millert@ jmc@
2008-10-22man page for Makefile.yp, and associated bits; from Ingo SchwarzeJason McIntyre
ok deraadt
2008-10-21build w/ USE_LOCALE. ok millert@Martynas Venckus
2008-10-21use decimal point from locale. ok millert@Martynas Venckus
2008-10-20oops, assign errno the right way. caught by david running regress testsOtto Moerbeek