diff options
-rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index f769db410f..3c4d01f816 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 | |||
@@ -30,9 +30,9 @@ | |||
30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
31 | .\" SUCH DAMAGE. | 31 | .\" SUCH DAMAGE. |
32 | .\" | 32 | .\" |
33 | .\" $OpenBSD: malloc.3,v 1.105 2017/03/17 18:33:04 jmc Exp $ | 33 | .\" $OpenBSD: malloc.3,v 1.106 2017/03/24 16:17:50 otto Exp $ |
34 | .\" | 34 | .\" |
35 | .Dd $Mdocdate: March 17 2017 $ | 35 | .Dd $Mdocdate: March 24 2017 $ |
36 | .Dt MALLOC 3 | 36 | .Dt MALLOC 3 |
37 | .Os | 37 | .Os |
38 | .Sh NAME | 38 | .Sh NAME |
@@ -447,6 +447,13 @@ A byte after the requested size has been overwritten, | |||
447 | indicating a heap overflow. | 447 | indicating a heap overflow. |
448 | The offset at which corruption was detected is printed before the @, | 448 | The offset at which corruption was detected is printed before the @, |
449 | and the requested length of the allocation after the @. | 449 | and the requested length of the allocation after the @. |
450 | .It Dq recorded old size oldsize != size | ||
451 | .Fn recallocarray | ||
452 | has detected that the given old size does not equal the recorded size in its | ||
453 | meta data. | ||
454 | Enabling option C allows | ||
455 | .Fn recallocarray | ||
456 | to catch more of these cases. | ||
450 | .It Dq recursive call | 457 | .It Dq recursive call |
451 | An attempt was made to call recursively into these functions, i.e., from a | 458 | An attempt was made to call recursively into these functions, i.e., from a |
452 | signal handler. | 459 | signal handler. |
@@ -462,12 +469,6 @@ functions nor utilize any other functions which may call | |||
462 | routines). | 469 | routines). |
463 | .It Dq unknown char in MALLOC_OPTIONS | 470 | .It Dq unknown char in MALLOC_OPTIONS |
464 | We found something we didn't understand. | 471 | We found something we didn't understand. |
465 | .It Dq malloc cache overflow/underflow | ||
466 | The internal malloc page cache has been corrupted. | ||
467 | .It Dq malloc free slot lost | ||
468 | The internal malloc page cache has been corrupted. | ||
469 | .It Dq guard size | ||
470 | An inconsistent guard size was detected. | ||
471 | .It any other error | 472 | .It any other error |
472 | .Fn malloc | 473 | .Fn malloc |
473 | detected an internal error; | 474 | detected an internal error; |