Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for __set_errno (0.57 sec)

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

    +++ 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;
    +    }
    +
    +  strncpy (ifr.ifr_name, ifname, sizeof (ifr.ifr_name));
    +
       int fd = __opensock ();
     
       if (fd < 0)
         return 0;
     
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Nov 11 19:25:56 UTC 2024
    - 42.9K bytes
    - Viewed (0)
Back to top