diff options
author | Cristian RodrÃguez <crrodriguez@opensuse.org> | 2022-03-13 18:40:24 +0000 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2022-03-28 19:10:30 +0530 |
commit | 811c635dbae42a0ced67d2bffa8ad68b58d6e44e (patch) | |
tree | b6ae6c335147694dc564ede1d427570472cdfc08 /debug | |
parent | 866c599182e87f116440b5d854f9e99533c48eb3 (diff) | |
download | glibc-811c635dbae42a0ced67d2bffa8ad68b58d6e44e.tar.gz glibc-811c635dbae42a0ced67d2bffa8ad68b58d6e44e.tar.xz glibc-811c635dbae42a0ced67d2bffa8ad68b58d6e44e.zip |
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 <crrodriguez@opensuse.org> Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'debug')
-rw-r--r-- | debug/fdelt_chk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debug/fdelt_chk.c b/debug/fdelt_chk.c index c5f16462ad..30f5a4bec1 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 <https://www.gnu.org/licenses/>. */ +#include <stdio.h> #include <sys/select.h> @@ -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; } |