Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix previous. | visa | 2017-04-20 | 1 | -2/+2 | |
| | ||||||
* | Get TCB address using the RDHWR instruction instead of __get_tcb(). | visa | 2017-04-20 | 1 | -4/+5 | |
| | | | | | | | | | | | This gives fast access to the address on systems that implement the UserLocal register. TCB caching is still used when running in the single-threaded mode in order not to penalize old systems. The kernel counterpart of this change must be in place before using this diff! With guenther@ | |||||
* | don't forget to fill in canary bytes for posix_memalign(3); reported by | otto | 2017-04-18 | 1 | -1/+4 | |
| | | | | and ok jeremy@ | |||||
* | consictently use .Dv NULL and a few other tweaks; ok schwarze@ | otto | 2017-04-17 | 1 | -20/+17 | |
| | ||||||
* | whitespace fixes | otto | 2017-04-17 | 1 | -14/+14 | |
| | ||||||
* | allow clearing less than allocated and document freezero(3) better | otto | 2017-04-13 | 2 | -13/+26 | |
| | ||||||
* | New strstr() implementation from musl libc by Rich Felker. This | millert | 2017-04-12 | 1 | -44/+180 | |
| | | | | | | | | version uses the two-way string matching algorithm and is faster than the old implementation. With this change, ports that check for strstr having linear complexity time strstr will no longer replace the libc strstr with a private version. OK deraadt@ espie@ | |||||
* | tweak previous; | jmc | 2017-04-10 | 1 | -4/+4 | |
| | ||||||
* | Introducing freezero(3) a version of free that guarantees the process | otto | 2017-04-10 | 2 | -36/+130 | |
| | | | | | | no longer has access to the content of a memmory object. It does this by either clearing (if the object memory remains cached) or by calling munmap(2). ok millert@, deraadt@, guenther@ | |||||
* | Consistentcy between nmembers and size order. From Christopher Hettrick; | otto | 2017-04-06 | 1 | -8/+8 | |
| | | | | ok deraadt@ | |||||
* | first print size in meta-data then supplied arg size when an inconsistency is | otto | 2017-04-06 | 1 | -3/+3 | |
| | | | | detected wrt recallocarray() | |||||
* | rephrase more enumerations of functions | otto | 2017-03-29 | 1 | -13/+10 | |
| | ||||||
* | small cleanup & optimization; ok deraadt@ millert@ | otto | 2017-03-28 | 1 | -2/+5 | |
| | ||||||
* | Stop enumeration all allocation functions, just say "allocation functions"libressl-v2.5.2 | otto | 2017-03-26 | 1 | -32/+13 | |
| | | | | ok jmc@ deraadt@ | |||||
* | add a helper function to print all pools #ifdef MALLOC_STATS | otto | 2017-03-24 | 1 | -1/+16 | |
| | | | | from David CARLIER | |||||
* | document new recallocarray diagnostic; zap a few diagnostics that should | otto | 2017-03-24 | 1 | -8/+9 | |
| | | | | never occur | |||||
* | move recallocarray to malloc.c and | otto | 2017-03-24 | 2 | -19/+207 | |
| | | | | | | | - use internal meta-data to do more consistency checking (especially with option C) - use cheap free if possible ok deraadt@ | |||||
* | remove unneccessary macro; | jmc | 2017-03-17 | 1 | -2/+2 | |
| | ||||||
* | Strengthen description of recallocarray(3) behaviour, hoping that readers | deraadt | 2017-03-17 | 1 | -5/+10 | |
| | | | | | make the behaviour -> use case connection. help from jmc and jsing | |||||
* | Some tweaks from jmc@ and describe better what recallocarray does; | otto | 2017-03-07 | 1 | -7/+16 | |
| | | | | help and ok from tom@ and deraadt@ | |||||
* | Introducing recallocarray(3), a blend of calloc(3) and reallocarray(3) | otto | 2017-03-06 | 3 | -7/+147 | |
| | | | | | with the added feature that released memory is cleared. Much input from various developers. ok deraadt@ tom@ | |||||
* | size is unsigned so using ==0 not <=0 when checking for buffer exhaustion | millert | 2017-03-06 | 1 | -4/+4 | |
| | ||||||
* | Pull in a change from the bind 8 resolver that fixes a potential | millert | 2017-03-06 | 1 | -10/+16 | |
| | | | | | crash when given a large hex number as part of the dotted quad. OK deraadt@ jsg@ | |||||
* | Add support for RES_USE_DNSSEC | jca | 2017-02-27 | 1 | -5/+2 | |
| | | | | | | | | | | | | RES_USE_DNSSEC is implemented by setting the DNSSEC DO bit in outgoing queries. The resolver is then supposed to set the AD bit in the reply if it managed to validate the answer through DNSSEC. Useful when the application doesn't implement validation internally. This scheme assumes that the validating resolver is trusted and that the communication channel between the validating resolver and and the client is secure. ok eric@ gilles@ | |||||
* | Add EDNS0 support. | jca | 2017-02-18 | 1 | -4/+3 | |
| | | | | | | | EDNS allows for various DNS extensions, among which UDP DNS packets size bigger than 512 bytes. The default is still to not advertize anything. ok eric@ | |||||
* | Add a NULL test to wrterror() to avoid a NULL deref when called from a | jsg | 2017-02-15 | 1 | -2/+2 | |
| | | | | | | free() error path. ok otto@ | |||||
* | malloc does not *need* to return page-aligned objects for size >= | otto | 2017-02-12 | 1 | -5/+2 | |
| | | | | | a page. This is not required by any standard and other malloc implementation do not document (or implement) this. ok deraadt@ | |||||
* | fix a comment and rm some dead code as a result of the previous diff | otto | 2017-02-02 | 1 | -8/+5 | |
| | ||||||
* | Let realloc handle and produce moved pointers for allocations betweenlibressl-v2.5.1 | otto | 2017-02-01 | 1 | -20/+37 | |
| | | | | half a page and a page. ok jmatthew@ tb@ | |||||
* | in resolver(3), document that _EDNS0 and _DNSSEC are no ops; | jmc | 2017-01-24 | 1 | -6/+17 | |
| | | | | | | | diff from kirill miazine while here, bump all the no op texts to one standard blurb; help/ok jca | |||||
* | 1. When shrinking a chunk allocation, compare the size of the current | otto | 2017-01-21 | 1 | -46/+87 | |
| | | | | | | | | | | allocation to the size of the new allocation (instead of the requested size). 2. Previously realloc takes the easy way and always reallocates if C is active. This commit fixes by carefully updating the recorded requested size in all cases, and writing the canary bytes in the proper location after reallocating. 3. Introduce defines to test if MALLOC_MOVE should be done and to compute the new value. | |||||
* | Remove unnecessary casts of 'a' to char * since 'a' is already char *. | millert | 2017-01-04 | 1 | -10/+10 | |
| | | | | | This is a remnant from the original 4.4BSD code that had 'a' as void * in the function args. No binary change. OK bluhm@ | |||||
* | Eliminate some gcc warnings about 'unused variables', mostly by | krw | 2016-12-16 | 1 | -2/+2 | |
| | | | | | | adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately) | |||||
* | Nuke some trailing tabs. | krw | 2016-12-15 | 1 | -3/+3 | |
| | ||||||
* | Fix regressions introduce in the fix for CVE-2016-6559. | millert | 2016-12-08 | 1 | -6/+5 | |
| | | | | From FreeBSD (glebius) | |||||
* | Fix a typo, decrement rem, don't increment for single digit hex bytes. | millert | 2016-12-07 | 1 | -2/+2 | |
| | | | | From Henri Kemppainen | |||||
* | CVE-2016-6559: fix potential buffer overflow(s) in link_ntoa(3). | millert | 2016-12-06 | 1 | -19/+35 | |
| | | | | | | | A specially crafted struct sockaddr_dl argument can trigger a stack overflow of a static buffer in libc. An attacker may be able to use this to write to arbitrary locations in the data segment. From FreeBSD (glebius); OK deraadt@ mestre@ | |||||
* | the referred to EXAMPLES section is now in strncpy(3); | jmc | 2016-11-12 | 1 | -3/+3 | |
| | | | | | | issue reported by scott cheloha ok otto | |||||
* | MALLOC_STATS tweaks, by default not compiled in | otto | 2016-11-04 | 1 | -13/+29 | |
| | ||||||
* | small tweak to also check canaries if F is in effect | otto | 2016-11-03 | 1 | -3/+5 | |
| | ||||||
* | remove some old option letters and also make P non-settable. It has | otto | 2016-10-31 | 1 | -24/+6 | |
| | | | | | been the default for ages, and I see no valid reason to be able to disable it. ok natano@ | |||||
* | Pages in the malloc cache are either reused quickly or unmapped | otto | 2016-10-28 | 1 | -14/+1 | |
| | | | | | | quickly. In both cases it does not make sense to set hints on them. So remove that option, which is just a remainder of old times when malloc used to hold on to pages. ok stefan@ | |||||
* | $OpenBSD$ | tb | 2016-10-22 | 3 | -0/+3 | |
| | ||||||
* | - fix MALLOC_STATS compile | otto | 2016-10-22 | 1 | -3/+6 | |
| | | | | - redundant cast is redundant | |||||
* | fix some void * arithmetic by casting | otto | 2016-10-21 | 1 | -4/+4 | |
| | ||||||
* | and recommit with fixed GC | otto | 2016-10-21 | 1 | -103/+112 | |
| | ||||||
* | backout for now; flag combination GC is not ok | otto | 2016-10-20 | 1 | -110/+103 | |
| | ||||||
* | avoid sentence splicing; | jmc | 2016-10-20 | 1 | -2/+2 | |
| | ||||||
* | canary corruption message changed a bit | otto | 2016-10-20 | 1 | -5/+5 | |
| | ||||||
* | Also place canaries in > page sized objects (if C is in effect); ok tb@ | otto | 2016-10-20 | 1 | -103/+110 | |
| |