[PATCH] debug: Improve error message on fdelt_chk
Adhemerval Zanella
adhemerval.zanella@linaro.org
Tue Jan 4 17:22:30 GMT 2022
On 03/01/2022 19:38, Cristian Rodríguez wrote:
> There is really no buffer overflow, but an invalid bit on fd_set
>
> Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.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;
> }
More information about the Libc-alpha
mailing list