diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-15 08:28:50 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-15 08:39:31 +0200 |
commit | adcc572a29169e5b571ab06b1a5bf941985d8fe6 (patch) | |
tree | 77aebfcb3ff5acaddaaed71e70abde4d39399942 /sysdeps/mach | |
parent | 2ff32dd4926c7ec3bb6c09b58a12a8e828a4cc58 (diff) | |
download | glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.zip glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.tar.gz glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.tar.bz2 |
resolv: Move ns_name_ntop to its own file and into libc
Reformat to GNU style. Avoid out-of-bounds pointer arithmetic
(e.g., use eom - dn < 2 instead of dn + 1 >= eom). Inline the
labellen function and fold the compression pointer check into
the length check (l >= 64). Assume ASCII encoding.
The symbol was moved using scripts/move-symbol-to-libc.py.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/i386/libc.abilist | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/i386/libresolv.abilist | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/i386/libc.abilist b/sysdeps/mach/hurd/i386/libc.abilist index 25003cd..1e02c16 100644 --- a/sysdeps/mach/hurd/i386/libc.abilist +++ b/sysdeps/mach/hurd/i386/libc.abilist @@ -2241,6 +2241,7 @@ GLIBC_2.34 login F GLIBC_2.34 login_tty F GLIBC_2.34 logout F GLIBC_2.34 logwtmp F +GLIBC_2.34 ns_name_ntop F GLIBC_2.34 openpty F GLIBC_2.34 posix_spawn_file_actions_addclosefrom_np F GLIBC_2.34 shm_open F @@ -2362,6 +2363,7 @@ GLIBC_2.8 __vasprintf_chk F GLIBC_2.8 __vdprintf_chk F GLIBC_2.8 qsort_r F GLIBC_2.9 dup3 F +GLIBC_2.9 ns_name_ntop F GLIBC_2.9 pipe2 F HURD_CTHREADS_0.3 __cthread_getspecific F HURD_CTHREADS_0.3 __cthread_keycreate F diff --git a/sysdeps/mach/hurd/i386/libresolv.abilist b/sysdeps/mach/hurd/i386/libresolv.abilist index e662651..63a07a6 100644 --- a/sysdeps/mach/hurd/i386/libresolv.abilist +++ b/sysdeps/mach/hurd/i386/libresolv.abilist @@ -72,7 +72,6 @@ GLIBC_2.9 ns_makecanon F GLIBC_2.9 ns_msg_getflag F GLIBC_2.9 ns_name_compress F GLIBC_2.9 ns_name_ntol F -GLIBC_2.9 ns_name_ntop F GLIBC_2.9 ns_name_pack F GLIBC_2.9 ns_name_pton F GLIBC_2.9 ns_name_rollback F |