summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2017-03-24 16:17:51 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2017-03-24 16:17:51 +0000
commitb189f59dc0c0ceb43f17cd1c51b06320c52c9830 (patch)
tree677fdfcafda555c2a0fd9be445a4e501888821f8 /lib/libc/stdlib
parent46641eee2fe4578a4c6a6f03e40f9964f1c110da (diff)
document new recallocarray diagnostic; zap a few diagnostics that should
never occur
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/malloc.317
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index f769db410fe..3c4d01f8163 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -30,9 +30,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.105 2017/03/17 18:33:04 jmc Exp $
+.\" $OpenBSD: malloc.3,v 1.106 2017/03/24 16:17:50 otto Exp $
.\"
-.Dd $Mdocdate: March 17 2017 $
+.Dd $Mdocdate: March 24 2017 $
.Dt MALLOC 3
.Os
.Sh NAME
@@ -447,6 +447,13 @@ A byte after the requested size has been overwritten,
indicating a heap overflow.
The offset at which corruption was detected is printed before the @,
and the requested length of the allocation after the @.
+.It Dq recorded old size oldsize != size
+.Fn recallocarray
+has detected that the given old size does not equal the recorded size in its
+meta data.
+Enabling option C allows
+.Fn recallocarray
+to catch more of these cases.
.It Dq recursive call
An attempt was made to call recursively into these functions, i.e., from a
signal handler.
@@ -462,12 +469,6 @@ functions nor utilize any other functions which may call
routines).
.It Dq unknown char in MALLOC_OPTIONS
We found something we didn't understand.
-.It Dq malloc cache overflow/underflow
-The internal malloc page cache has been corrupted.
-.It Dq malloc free slot lost
-The internal malloc page cache has been corrupted.
-.It Dq guard size
-An inconsistent guard size was detected.
.It any other error
.Fn malloc
detected an internal error;