From 8dc93af8b21a58d34a844e0e0d609d24ff3e931f Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Sun, 17 Nov 2024 18:03:43 +0100 Subject: [PATCH] Config.in: fix _FORTIFY_SOURCE help string typos The Config.in help string for BR2_FORTIFY_SOURCE_{2,3} mention "_FORTIFY_SOURCES" (plural, with an extra "S"). The correct macro name is "_FORTIFY_SOURCE" (without the "S"). See [1]. This commit fixes those typos. [1] https://www.gnu.org/software/libc/manual/html_node/Source-Fortification.html Signed-off-by: Julien Olivain Reviewed-by: Vincent Jardin Signed-off-by: Peter Korsgaard (cherry picked from commit 1ec30e6f11f058b4510342a98639b06de1c43358) Signed-off-by: Peter Korsgaard --- Config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Config.in b/Config.in index bfb3f75615..8d8dc967fc 100644 --- a/Config.in +++ b/Config.in @@ -948,7 +948,7 @@ config BR2_FORTIFY_SOURCE_2 # gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61164 depends on !BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_GCC_AT_LEAST_6 help - This option sets _FORTIFY_SOURCES to 2 and some more + This option sets _FORTIFY_SOURCE to 2 and some more checking is added, but some conforming programs might fail. Also adds checks at run-time (detected buffer overflow terminates the program) @@ -957,7 +957,7 @@ config BR2_FORTIFY_SOURCE_3 bool "Extended" depends on BR2_TOOLCHAIN_GCC_AT_LEAST_12 help - This option sets _FORTIFY_SOURCES to 3 and even more + This option sets _FORTIFY_SOURCE to 3 and even more checking is added compared to level 2. Extends checks at run-time that can introduce an additional performance overhead.