about summary refs log tree commit diff
path: root/resolv/ns_name_ntop.c
Commit message (Collapse)AuthorAgeFilesLines
* resolv: Move ns_name_ntop to its own file and into libcFlorian Weimer2021-07-151-0/+145
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>