summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorotto <>2023-04-01 18:47:51 +0000
committerotto <>2023-04-01 18:47:51 +0000
commitcf724aab877ffcaa29549a1e190b9568d842d1ba (patch)
treea23931f52eaf7be0023b8e426ad5ffe04a37b225 /src/lib/libc/stdlib/malloc.3
parent604fa219220a50c15886d5418cc74626c6da26b7 (diff)
downloadopenbsd-cf724aab877ffcaa29549a1e190b9568d842d1ba.tar.gz
openbsd-cf724aab877ffcaa29549a1e190b9568d842d1ba.tar.bz2
openbsd-cf724aab877ffcaa29549a1e190b9568d842d1ba.zip
Check all chunks in the delayed free list for write-after-free.
Should catch more of them and closer (in time) to the WAF. ok tb@
Diffstat (limited to 'src/lib/libc/stdlib/malloc.3')
-rw-r--r--src/lib/libc/stdlib/malloc.37
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index 9bd498ab50..b35b9220f6 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.129 2022/03/31 17:27:16 naddy Exp $ 33.\" $OpenBSD: malloc.3,v 1.130 2023/04/01 18:47:51 otto Exp $
34.\" 34.\"
35.Dd $Mdocdate: March 31 2022 $ 35.Dd $Mdocdate: April 1 2023 $
36.Dt MALLOC 3 36.Dt MALLOC 3
37.Os 37.Os
38.Sh NAME 38.Sh NAME
@@ -293,7 +293,8 @@ order to have any effect.
293.It Cm F 293.It Cm F
294.Dq Freecheck . 294.Dq Freecheck .
295Enable more extensive double free and use after free detection. 295Enable more extensive double free and use after free detection.
296All chunks in the delayed free list will be checked for double frees. 296All chunks in the delayed free list will be checked for double frees and
297write after frees.
297Unused pages on the freelist are read and write protected to 298Unused pages on the freelist are read and write protected to
298cause a segmentation fault upon access. 299cause a segmentation fault upon access.
299.It Cm G 300.It Cm G