summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorotto <>2016-10-07 12:59:04 +0000
committerotto <>2016-10-07 12:59:04 +0000
commit1f5f82198bf666c2ed5d9ded093935edc4e379a7 (patch)
treeea096198e1f663762a446101e749b539f034cec4
parentd73df55d2d95761a52032c058ed6e6b94e19efd9 (diff)
downloadopenbsd-1f5f82198bf666c2ed5d9ded093935edc4e379a7.tar.gz
openbsd-1f5f82198bf666c2ed5d9ded093935edc4e379a7.tar.bz2
openbsd-1f5f82198bf666c2ed5d9ded093935edc4e379a7.zip
document "chunk canary corrupted" error
-rw-r--r--src/lib/libc/stdlib/malloc.39
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index 3ccd13cdd8..638bcc2b50 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.95 2016/04/03 09:31:45 otto Exp $ 33.\" $OpenBSD: malloc.3,v 1.96 2016/10/07 12:59:04 otto Exp $
34.\" 34.\"
35.Dd $Mdocdate: April 3 2016 $ 35.Dd $Mdocdate: October 7 2016 $
36.Dt MALLOC 3 36.Dt MALLOC 3
37.Os 37.Os
38.Sh NAME 38.Sh NAME
@@ -377,6 +377,11 @@ The pointer passed to
377or 377or
378.Fn reallocarray 378.Fn reallocarray
379has been modified. 379has been modified.
380.It Dq chunk canary corrupted 0xhhhhllll
381A byte after the requested size has been overwritten,
382indicating a heap overflow.
383The high word is the length of the chunk,
384the low word is the offset at which corruption was detected.
380.It Dq recursive call 385.It Dq recursive call
381An attempt was made to call recursively into these functions, i.e., from a 386An attempt was made to call recursively into these functions, i.e., from a
382signal handler. 387signal handler.