fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit 44a71e36ed37781fa850662f479734cce1c354ce
parent dad7183404977f02512898b030242a7c0a40051c
Author: jvoisin <julien.voisin@dustri.org>
Date:   Thu, 22 Jun 2023 18:46:08 +0200

Add an annotation for fgets

Diffstat:
Minclude/stdio.h | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/include/stdio.h b/include/stdio.h @@ -36,6 +36,7 @@ extern "C" { #undef snprintf #undef sprintf +__access(write_only, 1, 2) _FORTIFY_FN(fgets) char *fgets(char *__s, int __n, FILE *__f) { size_t __b = __bos(__s, 0);