about summary refs log tree commit diff
path: root/debug/fgets_u_chk.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2023-04-03 10:20:04 -0400
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2023-04-03 10:20:04 -0400
commitac2a14343e81098c196cef5d67b52e440c05c230 (patch)
tree7e6f4231239a7b525365274886c4f6ab6ab821e7 /debug/fgets_u_chk.c
parent7b3d8558d92a123743699c577704aab4a2f3d949 (diff)
downloadglibc-ac2a14343e81098c196cef5d67b52e440c05c230.tar.gz
glibc-ac2a14343e81098c196cef5d67b52e440c05c230.tar.xz
glibc-ac2a14343e81098c196cef5d67b52e440c05c230.zip
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>
Diffstat (limited to 'debug/fgets_u_chk.c')
0 files changed, 0 insertions, 0 deletions