diff options
author | 2017-03-24 16:17:50 +0000 | |
---|---|---|
committer | 2017-03-24 16:17:50 +0000 | |
commit | ebac26e41afedc9478c037f2a14f910d1dad35a4 (patch) | |
tree | 1fd415b12cf1927642d72dc73a4ff393b1cefeb9 /lib/libc/stdlib/malloc.3 | |
parent | move recallocarray to malloc.c and (diff) | |
download | wireguard-openbsd-ebac26e41afedc9478c037f2a14f910d1dad35a4.tar.xz wireguard-openbsd-ebac26e41afedc9478c037f2a14f910d1dad35a4.zip |
document new recallocarray diagnostic; zap a few diagnostics that should
never occur
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 17 |
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; |