From: Cristian Rodríguez Date: Sun, 13 Mar 2022 18:40:24 +0000 (+0000) Subject: debug: Improve fdelt_chk error message X-Git-Tag: glibc-2.36~428 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=811c635dbae42a0ced67d2bffa8ad68b58d6e44e;p=thirdparty%2Fglibc.git debug: Improve fdelt_chk error message It is not a "buffer overflow detected" but an out of range bit on fd_set Signed-off-by: Cristian Rodríguez Reviewed-by: Siddhesh Poyarekar --- diff --git a/debug/fdelt_chk.c b/debug/fdelt_chk.c index c5f16462ad0..30f5a4bec1f 100644 --- a/debug/fdelt_chk.c +++ b/debug/fdelt_chk.c @@ -15,6 +15,7 @@ License along with the GNU C Library; if not, see . */ +#include #include @@ -22,7 +23,7 @@ long int __fdelt_chk (long int d) { if (d < 0 || d >= FD_SETSIZE) - __chk_fail (); + __fortify_fail ("bit out of range 0 - FD_SETSIZE on fd_set"); return d / __NFDBITS; }