diff options
author | otto <> | 2017-03-29 17:38:37 +0000 |
---|---|---|
committer | otto <> | 2017-03-29 17:38:37 +0000 |
commit | edbc98f3d5629f6851b8036e9a88c53019b5b205 (patch) | |
tree | 95339312050c9da966ae468e104feae5b2e59ee2 /src/lib | |
parent | 450e0dcf5721f1e74efa759b69fb90cdf33270f5 (diff) | |
download | openbsd-edbc98f3d5629f6851b8036e9a88c53019b5b205.tar.gz openbsd-edbc98f3d5629f6851b8036e9a88c53019b5b205.tar.bz2 openbsd-edbc98f3d5629f6851b8036e9a88c53019b5b205.zip |
rephrase more enumerations of functions
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index 09b901e359..42cf9ba9a9 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.107 2017/03/26 09:21:33 otto Exp $ | 33 | .\" $OpenBSD: malloc.3,v 1.108 2017/03/29 17:38:37 otto Exp $ |
34 | .\" | 34 | .\" |
35 | .Dd $Mdocdate: March 26 2017 $ | 35 | .Dd $Mdocdate: March 29 2017 $ |
36 | .Dt MALLOC 3 | 36 | .Dt MALLOC 3 |
37 | .Os | 37 | .Os |
38 | .Sh NAME | 38 | .Sh NAME |
@@ -165,7 +165,7 @@ If | |||
165 | .Fa ptr | 165 | .Fa ptr |
166 | was previously freed by | 166 | was previously freed by |
167 | .Fn free | 167 | .Fn free |
168 | or an allocation function, | 168 | or a reallocation function, |
169 | the behavior is undefined and the double free is a security concern. | 169 | the behavior is undefined and the double free is a security concern. |
170 | .Sh RETURN VALUES | 170 | .Sh RETURN VALUES |
171 | Upon successful completion, the allocation functions | 171 | Upon successful completion, the allocation functions |
@@ -406,22 +406,17 @@ This is a rather weird condition that is most likely to indicate a | |||
406 | seriously overloaded system or a ulimit restriction. | 406 | seriously overloaded system or a ulimit restriction. |
407 | .It Dq bogus pointer (double free?) | 407 | .It Dq bogus pointer (double free?) |
408 | An attempt to | 408 | An attempt to |
409 | .Fn free , | 409 | .Fn free |
410 | .Fn realloc , | ||
411 | or | 410 | or |
412 | .Fn reallocarray | 411 | reallocate an unallocated pointer was made. |
413 | an unallocated pointer was made. | ||
414 | .It Dq chunk is already free | 412 | .It Dq chunk is already free |
415 | There was an attempt to free a chunk that had already been freed. | 413 | There was an attempt to free a chunk that had already been freed. |
416 | .It Dq use after free | 414 | .It Dq use after free |
417 | A chunk has been modified after it was freed. | 415 | A chunk has been modified after it was freed. |
418 | .It Dq modified chunk-pointer | 416 | .It Dq modified chunk-pointer |
419 | The pointer passed to | 417 | The pointer passed to |
420 | .Fn free , | 418 | .Fn free |
421 | .Fn realloc , | 419 | or a reallocation function has been modified. |
422 | or | ||
423 | .Fn reallocarray | ||
424 | has been modified. | ||
425 | .It Dq chunk canary corrupted address offset@length | 420 | .It Dq chunk canary corrupted address offset@length |
426 | A byte after the requested size has been overwritten, | 421 | A byte after the requested size has been overwritten, |
427 | indicating a heap overflow. | 422 | indicating a heap overflow. |
@@ -431,7 +426,9 @@ and the requested length of the allocation after the @. | |||
431 | .Fn recallocarray | 426 | .Fn recallocarray |
432 | has detected that the given old size does not equal the recorded size in its | 427 | has detected that the given old size does not equal the recorded size in its |
433 | meta data. | 428 | meta data. |
434 | Enabling option C allows | 429 | Enabling option |
430 | .Cm C | ||
431 | allows | ||
435 | .Fn recallocarray | 432 | .Fn recallocarray |
436 | to catch more of these cases. | 433 | to catch more of these cases. |
437 | .It Dq recursive call | 434 | .It Dq recursive call |