A C library for asynchronous DNS requests (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
apenn-msft 5b246d2077
Tests should use dynamic system-assigned ports rather than static port (#346)
4 years ago
m4 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
test Tests should use dynamic system-assigned ports rather than static port (#346) 4 years ago
travis Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
vc Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
.gitignore Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
.travis.yml Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
AUTHORS Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
CHANGES Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
CHANGES.0 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
CMakeLists.txt Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
CONTRIBUTING.md Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
GIT-INFO Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
INSTALL.md Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
LICENSE.md Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
Makefile.Watcom Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
Makefile.am Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
Makefile.dj Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
Makefile.inc Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
Makefile.m32 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
Makefile.msvc Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
Makefile.netware Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
NEWS Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
README.cares Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
README.md Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
README.msvc Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
RELEASE-NOTES Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
RELEASE-PROCEDURE.md Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
SECURITY.md Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
TODO Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
acinclude.m4 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
acountry.1 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
acountry.c Update acountry.c country code list (#341) 4 years ago
adig.1 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
adig.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ahost.1 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ahost.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
appveyor.yml Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares__close_sockets.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares__get_hostent.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares__parse_into_addrinfo.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares__read_line.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares__readaddrinfo.c Unset members of the addr struct contain garbage values (#343) 4 years ago
ares__sortaddrinfo.c Tests should use dynamic system-assigned ports rather than static port (#346) 4 years ago
ares__timeval.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_android.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_android.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_build.h.cmake Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_build.h.dist Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_build.h.in Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_cancel.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_cancel.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_config.h.cmake Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_create_query.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_create_query.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_data.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_data.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_destroy.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_destroy.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_destroy_options.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_dns.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_dup.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_expand_name.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_expand_name.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_expand_string.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_expand_string.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_fds.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_fds.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_free_data.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_free_hostent.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_free_hostent.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_free_string.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_free_string.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_freeaddrinfo.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_freeaddrinfo.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_get_servers.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_get_servers_ports.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getaddrinfo.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getaddrinfo.c FQDN with trailing period should be queried first with larger ndot value (#345) 4 years ago
ares_getenv.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getenv.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_gethostbyaddr.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_gethostbyaddr.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_gethostbyname.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_gethostbyname.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_gethostbyname_file.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getnameinfo.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getnameinfo.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getopt.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getopt.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getsock.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_getsock.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_inet_net_pton.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_inet_ntop.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_inet_pton.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_init.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_init.c Ensure c89 support 4 years ago
ares_init_options.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_iphlpapi.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_ipv6.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_library_cleanup.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_library_init.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_library_init.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_library_init.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_library_init_android.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_library_initialized.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_llist.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_llist.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_mkquery.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_mkquery.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_nowarn.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_nowarn.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_options.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_a_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_a_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_aaaa_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_aaaa_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_mx_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_mx_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_naptr_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_naptr_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_ns_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_ns_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_ptr_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_ptr_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_soa_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_soa_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_srv_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_srv_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_txt_reply.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_parse_txt_reply.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_platform.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_platform.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_private.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_process.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_process.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_query.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_query.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_rules.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_save_options.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_search.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_search.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_send.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_send.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_local_dev.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_local_ip4.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_local_ip6.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_servers.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_servers_csv.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_servers_ports.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_servers_ports_csv.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_socket_callback.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_socket_configure_callback.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_socket_functions.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_set_sortlist.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_setup.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_strcasecmp.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_strcasecmp.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_strdup.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_strdup.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_strerror.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_strerror.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_strsplit.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_strsplit.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_timeout.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_timeout.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_version.3 Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_version.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_version.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_writev.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
ares_writev.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
bitncmp.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
bitncmp.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
buildconf Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
buildconf.bat Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
c-ares-config.cmake.in Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
cares.rc Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
config-dos.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
config-win32.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
configure.ac Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
get_ver.awk Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
git2changes.pl Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
inet_net_pton.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
inet_ntop.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
install-sh Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
libcares.pc.cmake Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
libcares.pc.in Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
maketgz Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
mkinstalldirs Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
msvc_ver.inc Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
nameser.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
setup_once.h Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago
windows_port.c Avoid buffer overflow in RC4 loop comparison (#336) 4 years ago

README.md

c-ares

Build Status Windows Build Status Coverage Status CII Best Practices Fuzzing Status Releases

This is c-ares, an asynchronous resolver library. It is intended for applications which need to perform DNS queries without blocking, or need to perform multiple DNS queries in parallel. The primary examples of such applications are servers which communicate with multiple clients and programs with graphical user interfaces.

The full source code is available in the 'c-ares' release archives, and in a git repository: http://github.com/c-ares/c-ares. See the INSTALL.md file for build information.

If you find bugs, correct flaws, have questions or have comments in general in regard to c-ares (or by all means the original ares too), get in touch with us on the c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares

c-ares is of course distributed under the same MIT-style license as the original ares.

You'll find all c-ares details and news here: https://c-ares.haxx.se/

Notes for c-ares hackers

  • The distributed ares_build.h file is only intended to be used on systems which can not run the also distributed configure script.

  • The distributed ares_build.h file is generated as a copy of ares_build.h.dist when the c-ares source code distribution archive file is originally created.

  • If you check out from git on a non-configure platform, you must run the appropriate buildconf* script to set up ares_build.h and other local files before being able to compile the library.

  • On systems capable of running the configure script, the configure process will overwrite the distributed ares_build.h file with one that is suitable and specific to the library being configured and built, this new file is generated from the ares_build.h.in template file.

  • If you intend to distribute an already compiled c-ares library you MUST also distribute along with it the generated ares_build.h which has been used to compile it. Otherwise the library will be of no use for the users of the library that you have built. It is your responsibility to provide this file. No one at the c-ares project can know how you have built the library.

  • File ares_build.h includes platform and configuration dependent info, and must not be modified by anyone. Configure script generates it for you.

  • We cannot assume anything else but very basic compiler features being present. While c-ares requires an ANSI C compiler to build, some of the earlier ANSI compilers clearly can't deal with some preprocessor operators.

  • Newlines must remain unix-style for older compilers' sake.

  • Comments must be written in the old-style /* unnested C-fashion */

  • Try to keep line lengths below 80 columns.