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 /resolv/Makefile | |
parent | 2ff32dd4926c7ec3bb6c09b58a12a8e828a4cc58 (diff) | |
download | glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.tar.gz glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.tar.xz glibc-adcc572a29169e5b571ab06b1a5bf941985d8fe6.zip |
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 'resolv/Makefile')
-rw-r--r-- | resolv/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/resolv/Makefile b/resolv/Makefile index f14b149b31..bb16175654 100644 --- a/resolv/Makefile +++ b/resolv/Makefile @@ -32,6 +32,7 @@ routines := \ inet_addr \ inet_ntop \ inet_pton \ + ns_name_ntop \ nsap_addr \ res-close \ res-state \ |