summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-07-29 21:01:14 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-07-29 21:01:14 +0000
commitb6886a6f5760a87622d9c15335903f44c218db80 (patch)
tree7e516811e08c66270afb7d7f38d913faf28ae9f7
parent3b54882e1a9bef9bf869051ed20f75bcdb1c984f (diff)
Document that builtins for certain malloc(3)-like and free(3)-like
functions are disabled.
-rw-r--r--share/man/man1/clang-local.114
1 files changed, 13 insertions, 1 deletions
diff --git a/share/man/man1/clang-local.1 b/share/man/man1/clang-local.1
index 1c25c423392..692aaf63a14 100644
--- a/share/man/man1/clang-local.1
+++ b/share/man/man1/clang-local.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: clang-local.1,v 1.8 2017/07/29 20:49:32 kettenis Exp $
+.\" $OpenBSD: clang-local.1,v 1.9 2017/07/29 21:01:13 kettenis Exp $
.\"
.\" Copyright (c) 2016 Pascal Stumpf <pascal@stumpf.co>
.\"
@@ -83,6 +83,18 @@ The
option to treat signed integer overflows as defined is enabled by default to
prevent dangerous optimizations which could remove security critical overflow
checks.
+.It
+The
+.Xr malloc 3 ,
+.Xr calloc 3 ,
+.Xr realloc 3 ,
+.Xr strdup 3 ,
+.Xr strndup 3 ,
+.Xr valloc 3
+and
+.Xr free 3
+builtins are disabled to prevent undesriable optimizations of calls to
+these functions.
.El
.Sh SEE ALSO
.Xr clang 1