[PATCH] debug: Improve error message on fdelt_chk

Cristian Rodríguez crrodriguez@opensuse.org
Mon Jan 3 22:38:51 GMT 2022


There is really no buffer overflow, but an invalid bit on fd_set

Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
---
 debug/fdelt_chk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debug/fdelt_chk.c b/debug/fdelt_chk.c
index c5f16462ad..a796688c5a 100644
--- a/debug/fdelt_chk.c
+++ b/debug/fdelt_chk.c
@@ -22,7 +22,7 @@ long int
 __fdelt_chk (long int d)
 {
   if (d < 0 || d >= FD_SETSIZE)
-    __chk_fail ();
+    __fortify_fail ("invalid bit detected on fd_set");
 
   return d / __NFDBITS;
 }
-- 
2.34.1



More information about the Libc-alpha mailing list