summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorotto <>2017-03-24 16:17:50 +0000
committerotto <>2017-03-24 16:17:50 +0000
commit982e89f9fe80ddc79729b97809ebe5c528291a6c (patch)
treef0e87c48f26b760064872ff1e398f4e6f863136b
parent3a16763c8564004e0dfb455abfd9170748794dbc (diff)
downloadopenbsd-982e89f9fe80ddc79729b97809ebe5c528291a6c.tar.gz
openbsd-982e89f9fe80ddc79729b97809ebe5c528291a6c.tar.bz2
openbsd-982e89f9fe80ddc79729b97809ebe5c528291a6c.zip
document new recallocarray diagnostic; zap a few diagnostics that should
never occur
-rw-r--r--src/lib/libc/stdlib/malloc.317
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,
447indicating a heap overflow. 447indicating a heap overflow.
448The offset at which corruption was detected is printed before the @, 448The offset at which corruption was detected is printed before the @,
449and the requested length of the allocation after the @. 449and the requested length of the allocation after the @.
450.It Dq recorded old size oldsize != size
451.Fn recallocarray
452has detected that the given old size does not equal the recorded size in its
453meta data.
454Enabling option C allows
455.Fn recallocarray
456to catch more of these cases.
450.It Dq recursive call 457.It Dq recursive call
451An attempt was made to call recursively into these functions, i.e., from a 458An attempt was made to call recursively into these functions, i.e., from a
452signal handler. 459signal handler.
@@ -462,12 +469,6 @@ functions nor utilize any other functions which may call
462routines). 469routines).
463.It Dq unknown char in MALLOC_OPTIONS 470.It Dq unknown char in MALLOC_OPTIONS
464We found something we didn't understand. 471We found something we didn't understand.
465.It Dq malloc cache overflow/underflow
466The internal malloc page cache has been corrupted.
467.It Dq malloc free slot lost
468The internal malloc page cache has been corrupted.
469.It Dq guard size
470An inconsistent guard size was detected.
471.It any other error 472.It any other error
472.Fn malloc 473.Fn malloc
473detected an internal error; 474detected an internal error;