]> git.ipfire.org Git - thirdparty/glibc.git/commit
manual: Document __wur usage under _FORTIFY_SOURCE
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 3 Apr 2023 14:20:04 +0000 (10:20 -0400)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 3 Apr 2023 14:20:04 +0000 (10:20 -0400)
commitac2a14343e81098c196cef5d67b52e440c05c230
tree7e6f4231239a7b525365274886c4f6ab6ab821e7
parent7b3d8558d92a123743699c577704aab4a2f3d949
manual: Document __wur usage under _FORTIFY_SOURCE

The __warn_unused_result__ attribute is only enabled when fortification
is enabled.  Mention that in the document.  The rationale for this is
essentially to mitigate against CWE-252:

[1] https://cwe.mitre.org/data/definitions/252.html

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
manual/maint.texi