Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add a new malloc option 'U' => "Free unmap" that does the guarding/ | djm | 2012-11-02 | 2 | -18/+36 | |
| | | | | | | | | | | | | unmapping of freed allocations without disabling chunk randomisation like the "Freeguard" ('F') option does. Make security 'S' option use 'U' and not 'F'. Rationale: guarding with no chunk randomisation is great for debugging use-after-free, but chunk randomisation offers better defence against "heap feng shui" style attacks that depend on carefully constructing a particular heap layout so we should leave this enabled when requesting security options. | |||||
* | last stage of rfc changes, using consistent Rs/Re blocks, and moving the | jmc | 2012-09-27 | 9 | -88/+91 | |
| | | | | references into a STANDARDS section; | |||||
* | Make setenv(3) consistent with unsetenv(3), giving EINVAL if passed | jeremy | 2012-09-23 | 2 | -20/+10 | |
| | | | | | | an empty name, NULL pointer, or a name containing an '=' character. OK millert@, guenther@ | |||||
* | remove some wacky Xo/Xc; | jmc | 2012-09-16 | 1 | -3/+3 | |
| | ||||||
* | remove tahoe-specific makefile machinery, no such hardware is known to be | miod | 2012-09-15 | 1 | -5/+1 | |
| | | | | | in working condition anymore (assuming there would be interest in running on it). | |||||
* | Document that strtod functions accept INF, NAN, NAN(). From Michal Mazurek. | martynas | 2012-09-15 | 1 | -3/+28 | |
| | ||||||
* | specify the bounds of the dst to strlcat (both values were static and | deraadt | 2012-09-13 | 1 | -2/+2 | |
| | | | | | equal, but it is more correct) from Michal Mazurek | |||||
* | Fix precedence bug (& has lower precedence than !=). | pirofti | 2012-09-13 | 1 | -2/+2 | |
| | | | | | | Okay otto@. Found by Michal Mazurek <akfaew at jasminek dot net>, thanks! | |||||
* | arc4random_buf is the easy way to fill a buffer now. ok deraadt | tedu | 2012-09-04 | 1 | -10/+3 | |
| | ||||||
* | remove lint leftovers; ok guenther@ | okan | 2012-09-04 | 1 | -5/+1 | |
| | ||||||
* | rfc 2553 (not 2533) has been replaced by rfc 3493; | jmc | 2012-08-22 | 1 | -5/+6 | |
| | ||||||
* | - remove inconsistent/obsolete comments | jmc | 2012-08-21 | 4 | -48/+35 | |
| | | | | | - update rfc references - make the Rs/Re blocks more consistent | |||||
* | flesh out the rfc section; | jmc | 2012-08-21 | 1 | -10/+33 | |
| | | | | rfc 5321 replaces 974 and 2821; | |||||
* | rfc 4291 replaces rfcs 2373 and 3513; | jmc | 2012-08-20 | 1 | -9/+16 | |
| | ||||||
* | remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets. | okan | 2012-08-02 | 1 | -21/+1 | |
| | | | | ok guenther@ | |||||
* | remove reference to no longer existing description of nonexistent devices; | naddy | 2012-07-26 | 1 | -7/+4 | |
| | | | | ok deraadt@ tedu@, wording tweaks jmc@ | |||||
* | Use same (lame) verbiage to explain ifa_dstaddr as is used for | krw | 2012-07-13 | 1 | -3/+4 | |
| | | | | | | | | ifa_broadaddr. i.e. make it make clear that this field is only valid for P2P. (Hint: one's a field, and one's a #define giving a new name to said field) ok guenther@ | |||||
* | fix an off-by-one error where the return value would point to the | naddy | 2012-07-11 | 1 | -2/+2 | |
| | | | | character after the '\0'; ok guenther@ | |||||
* | use PAGE_SHIFT instead of PGSHIFT, in preperation for future | deraadt | 2012-07-09 | 1 | -2/+2 | |
| | | | | | param.h symbol reduction. ok guenther | |||||
* | Zap extra spaces from function pointer arguments | guenther | 2012-07-08 | 2 | -8/+8 | |
| | | | | Pointed out by Joachim Schipper (joachim at joachimschipper.nl) | |||||
* | Describe tdelete()'s return value correctly and update the related CAVEAT | guenther | 2012-07-08 | 1 | -12/+15 | |
| | | | | | Based on a note from Steffen Daode Nurpmeso (sdaoden at googlemail.com) ok jmc@ | |||||
* | after a talk with ariane, use MAP_FIXED for mquery to avoid the cost of | tedu | 2012-06-26 | 1 | -2/+2 | |
| | | | | | | scanning for free space if the hint isn't available. also, on further inspection, this will prevent pmap_prefer from "improving" our hint. | |||||
* | Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as | matthew | 2012-06-24 | 1 | -12/+3 | |
| | | | | | | | | | | ``-upper_bound % upper_bound''. Simplifies the code and makes it the same on both ILP32 and LP64 architectures, and also slightly faster on LP64 architectures by using a 32-bit remainder instead of a 64-bit remainder. Pointed out by Jorden Verwer on tech@ ok deraadt; no objections from djm or otto | |||||
* | - document newly imported AF_INET6 support to net_inet_{pton,ntop} | gilles | 2012-06-24 | 1 | -5/+26 | |
| | | | | diff from Florian Obser, ok jmc@ | |||||
* | add support for AF_INET6 to inet_net_pton() and inet_net_ntop() | gilles | 2012-06-22 | 2 | -2/+68 | |
| | | | | | | using inet_pton() and inet_ntop() as suggested by claudio ok claudio@ | |||||
* | two changes which should improve realloc. first, fix zapcacheregion to | tedu | 2012-06-22 | 1 | -10/+19 | |
| | | | | | | clear out the entire requested area, not just a perfect fit. second, use mquery to check for room to avoid getting an address we don't like and having to send it back. | |||||
* | two small fixes to free page cache. first, we need two nibbles of random | tedu | 2012-06-20 | 1 | -4/+4 | |
| | | | | | | in order to span the the entire cache. second, on free use the same offset to put things in the cache instead of always starting at zero. ok otto | |||||
* | Support larger-than-page-alignment requests in posix_memalign() by | matthew | 2012-06-18 | 2 | -23/+130 | |
| | | | | | | overallocating and then releasing unneeded memory pages. ok otto | |||||
* | Update STANDARDS section for a few <stdlib.h> functions | guenther | 2012-06-02 | 4 | -14/+35 | |
| | | | | | | Update SYNOPSIS for setkey() to show it's in <stdlib.h> ok jmc@, millert@ | |||||
* | Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(), | guenther | 2012-06-01 | 3 | -8/+11 | |
| | | | | | | | and valloc() are not in the current version, while posix_memalign() mkstemp(), and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'. ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@ | |||||
* | Add strnlen() to libkern. | matthew | 2012-04-26 | 1 | -1/+5 | |
| | | | | ok deraadt | |||||
* | Document that getpeereid() works for SOCK_SEQPACKET sockets too. | matthew | 2012-04-22 | 1 | -3/+5 | |
| | ||||||
* | use "an addrinfo", not "a addrinfo". ok jmc | sthen | 2012-04-20 | 1 | -3/+3 | |
| | ||||||
* | rearrange DESCRIPTION somewhat to make this page more readable; | jmc | 2012-04-20 | 1 | -39/+40 | |
| | | | | from Lawrence Teo | |||||
* | alloca is NOT machine dependent; it has exactly the same | deraadt | 2012-04-12 | 1 | -7/+3 | |
| | | | | | effective result. its use is NOT discouraged -- it is not common, but when you need it, there is nothing else that will do. | |||||
* | Do not pick the network number as alias on entries with no alias | eric | 2012-04-10 | 1 | -3/+2 | |
| | | | | | | defined. ok deraadt@ | |||||
* | tweak previous; | jmc | 2012-04-03 | 1 | -3/+3 | |
| | ||||||
* | simplify the strlcpy/strlcat manual page substantially. do less | deraadt | 2012-04-02 | 1 | -70/+58 | |
| | | | | | | | | | | | | explaining of "what a C string is", and make it more clear that these functiosn BEHAVE EXACTLY LIKE snprintf with "%s"! (anyone who wants to write a 'strlcpy considered harmful' paper should probably write a 'strlcpy and snprintf considered harmful' paper instead). note to those from other projects reading this commit message: It would be very good if this new manual was picked up in your project. ok jmc millert krw | |||||
* | Bump standards years, as we conform to the new versions too | guenther | 2012-03-26 | 1 | -4/+4 | |
| | | | | ok jmc@ | |||||
* | strsignal() was standardized in POSIX-2008 | guenther | 2012-03-26 | 1 | -2/+7 | |
| | | | | ok millert@ | |||||
* | Fix a bug where random() always returns 0 when srandom() is seeded | millert | 2012-03-21 | 1 | -2/+3 | |
| | | | | | with 0. Use 1 and not 0 as the first element of the state array, similar to what glibc does. OK nicm@ | |||||
* | the disease is spreading | dlg | 2012-03-20 | 1 | -3/+3 | |
| | ||||||
* | - Test for the retrieved page address not being NULL. This turns free((void*)1) | otto | 2012-02-29 | 1 | -2/+7 | |
| | | | | | | into an bogus pointer error instead of a segfault. - Document that we use the assumption that a non-MAP_FIXED mmap() with hint 0 never returns NULL. | |||||
* | Revert previous diff as it resulted in the wrong return code when | guenther | 2012-02-06 | 1 | -5/+3 | |
| | | | | | | | the last node is deleted. Instead, resolve the Coverity warning by returning (node *)1 when you delete the root node. based an idea from millert@. ok otto@ | |||||
* | fix SEE ALSO; | jmc | 2012-01-17 | 1 | -2/+2 | |
| | ||||||
* | Add stpcpy() and stpncpy(), pointless crap that made it into POSIX. | guenther | 2012-01-17 | 4 | -3/+222 | |
| | | | | | | Includes friendly linker warning to wake up those dumb enough to use it. Committing for kettenis@, who ran away to the hills after writing it | |||||
* | net_addrcmp() dies. found out to be a horrific function by eric | deraadt | 2012-01-17 | 3 | -158/+3 | |
| | | | | ok guenther | |||||
* | grammar; | jmc | 2012-01-14 | 1 | -2/+2 | |
| | ||||||
* | this is sparta^WPOSIX 2008 | espie | 2012-01-14 | 1 | -2/+7 | |
| | | | | okay millert@ | |||||
* | draft-ietf-ipv6-scoping-arch-02 has become RFC 4007, as noted by | jmc | 2012-01-03 | 2 | -12/+10 | |
| | | | | | | Poul-Henning Kamp, freebsd pr docs/163771; ok sthen |