Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 38 (0.16 sec)

  1. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

     
    diff --git a/sysdeps/unix/sysv/linux/if_index.c b/sysdeps/unix/sysv/linux/if_index.c
    index 8ba5eae..b620d21 100644
    --- a/sysdeps/unix/sysv/linux/if_index.c
    +++ b/sysdeps/unix/sysv/linux/if_index.c
    @@ -38,12 +38,19 @@ __if_nametoindex (const char *ifname)
       return 0;
     #else
       struct ifreq ifr;
    +  if (strlen (ifname) >= IFNAMSIZ)
    +    {
    +      __set_errno (ENODEV);
    +      return 0;
    +    }
    +
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
Back to top