public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] debug: Improve error message on fdelt_chk
@ 2022-01-03 22:38 Cristian Rodríguez
  2022-01-04 17:22 ` Adhemerval Zanella
  0 siblings, 1 reply; 4+ messages in thread
From: Cristian Rodríguez @ 2022-01-03 22:38 UTC (permalink / raw)
  To: libc-alpha

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-14 14:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 22:38 [PATCH] debug: Improve error message on fdelt_chk Cristian Rodríguez
2022-01-04 17:22 ` Adhemerval Zanella
2022-01-10 18:38   ` Adhemerval Zanella
2022-01-14 14:43     ` Cristian Rodríguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).