commit b9121e4d679b5fccb69abcb58b05a6be5c7191dc
parent da5d5b242669f685e187d3356dcc083087624d56
Author: Sertonix <sertonix@posteo.net>
Date: Thu, 30 Apr 2026 12:32:01 +0200
Change access of first fgets argument to write_only
Fixes bf242b15e1f7
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/stdio.h b/include/stdio.h
@@ -37,7 +37,7 @@ extern "C" {
#undef snprintf
#undef sprintf
-__fortify_access(read_write, 1, 2)
+__fortify_access(write_only, 1, 2)
__fortify_access(read_only, 3)
_FORTIFY_FN(fgets) char *fgets(char * _FORTIFY_POS0 __s, int __n, FILE *__f)
{