From cff2c78c513ef8d51e69a6933f1c6aef8a24a6d6 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 19 Jul 2021 07:55:27 +0200 Subject: resolv: Move ns_name_skip to its own file and into libc (bug 28091) And reformat to GNU style. Avoid out-of-bounds pointer arithmetic. This also results in a fix of bug 28091 due to the additional packet length checks. The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Carlos O'Donell --- include/arpa/nameser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h index 2396a43030..c4ec0aaf7a 100644 --- a/include/arpa/nameser.h +++ b/include/arpa/nameser.h @@ -67,7 +67,6 @@ libresolv_hidden_proto (ns_skiprr) libresolv_hidden_proto (ns_parserr) libresolv_hidden_proto (ns_name_pton) libresolv_hidden_proto (ns_name_pack) -libresolv_hidden_proto (ns_name_skip) libresolv_hidden_proto (ns_name_compress) libresolv_hidden_proto (ns_name_uncompress) libresolv_hidden_proto (ns_sprintrr) @@ -79,6 +78,8 @@ libresolv_hidden_proto (ns_format_ttl) extern __typeof (ns_name_ntop) __ns_name_ntop; libc_hidden_proto (__ns_name_ntop) +extern __typeof (ns_name_skip) __ns_name_skip; +libc_hidden_proto (__ns_name_skip) extern __typeof (ns_name_unpack) __ns_name_unpack; libc_hidden_proto (__ns_name_unpack) -- cgit v1.2.3