| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 878e9a4 commit 832328e
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ INCLUDE (CheckCSourceCompiles) | |||
| 12 | 12 | INCLUDE (CheckStructHasMember) | |
| 13 | 13 | INCLUDE (CheckLibraryExists) | |
| 14 | 14 | ||
| 15 | - PROJECT (c-ares LANGUAGES C VERSION "1.32.0" ) | ||
| 15 | + PROJECT (c-ares LANGUAGES C VERSION "1.32.1" ) | ||
| 16 | 16 | ||
| 17 | 17 | # Set this version before release | |
| 18 | 18 | SET (CARES_VERSION "${PROJECT_VERSION}") | |
@@ -30,7 +30,7 @@ INCLUDE (GNUInstallDirs) # include this *AFTER* PROJECT(), otherwise paths are w | |||
| 30 | 30 | # For example, a version of 4:0:2 would generate output such as: | |
| 31 | 31 | # libname.so -> libname.so.2 | |
| 32 | 32 | # libname.so.2 -> libname.so.2.2.0 | |
| 33 | - SET (CARES_LIB_VERSIONINFO "19:0:17") | ||
| 33 | + SET (CARES_LIB_VERSIONINFO "19:1:17") | ||
| 34 | 34 | ||
| 35 | 35 | ||
| 36 | 36 | OPTION (CARES_STATIC "Build as a static library" OFF) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,13 @@ | |||
| 1 | + ## c-ares version 1.32.1 - July 7 2024 | ||
| 2 | + | ||
| 3 | + This is a bugfix release. | ||
| 4 | + | ||
| 5 | + Bugfixes: | ||
| 6 | + * Channel lock needs to be recursive to ensure calls into c-ares functions can | ||
| 7 | + be made from callbacks otherwise deadlocks will occur. This regression was | ||
| 8 | + introduced in 1.32.0. | ||
| 9 | + | ||
| 10 | + | ||
| 1 | 11 | ## c-ares version 1.32.0 - July 4 2024 | |
| 2 | 12 | ||
| 3 | 13 | This is a feature and bugfix release. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | ||
| 2 | 2 | # aminclude_static.am generated automatically by Autoconf | |
| 3 | - # from AX_AM_MACROS_STATIC on Thu Jul 4 07:03:12 EDT 2024 | ||
| 3 | + # from AX_AM_MACROS_STATIC on Sun Jul 7 10:45:53 EDT 2024 | ||
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | 6 | # Code coverage | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | #! /bin/sh | |
| 2 | 2 | # Guess values for system-dependent variables and create Makefiles. | |
| 3 | - # Generated by GNU Autoconf 2.72 for c-ares 1.32.0. | ||
| 3 | + # Generated by GNU Autoconf 2.72 for c-ares 1.32.1. | ||
| 4 | 4 | # | |
| 5 | 5 | # Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>. | |
| 6 | 6 | # | |
@@ -614,8 +614,8 @@ MAKEFLAGS= | |||
| 614 | 614 | # Identity of this package. | |
| 615 | 615 | PACKAGE_NAME='c-ares' | |
| 616 | 616 | PACKAGE_TARNAME='c-ares' | |
| 617 | - PACKAGE_VERSION='1.32.0' | ||
| 618 | - PACKAGE_STRING='c-ares 1.32.0' | ||
| 617 | + PACKAGE_VERSION='1.32.1' | ||
| 618 | + PACKAGE_STRING='c-ares 1.32.1' | ||
| 619 | 619 | PACKAGE_BUGREPORT='c-ares mailing list: http://lists.haxx.se/listinfo/c-ares' | |
| 620 | 620 | PACKAGE_URL='' | |
| 621 | 621 | ||
@@ -1415,7 +1415,7 @@ if test "$ac_init_help" = "long"; then | |||
| 1415 | 1415 | # Omit some internal or obsolete options to make the list less imposing. | |
| 1416 | 1416 | # This message is too long to be a string in the A/UX 3.1 sh. | |
| 1417 | 1417 | cat <<_ACEOF | |
| 1418 | - 'configure' configures c-ares 1.32.0 to adapt to many kinds of systems. | ||
| 1418 | + 'configure' configures c-ares 1.32.1 to adapt to many kinds of systems. | ||
| 1419 | 1419 | ||
| 1420 | 1420 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
| 1421 | 1421 | ||
@@ -1486,7 +1486,7 @@ fi | |||
| 1486 | 1486 | ||
| 1487 | 1487 | if test -n "$ac_init_help"; then | |
| 1488 | 1488 | case $ac_init_help in | |
| 1489 | - short | recursive ) echo "Configuration of c-ares 1.32.0:";; | ||
| 1489 | + short | recursive ) echo "Configuration of c-ares 1.32.1:";; | ||
| 1490 | 1490 | esac | |
| 1491 | 1491 | cat <<\_ACEOF | |
| 1492 | 1492 | ||
@@ -1623,7 +1623,7 @@ fi | |||
| 1623 | 1623 | test -n "$ac_init_help" && exit $ac_status | |
| 1624 | 1624 | if $ac_init_version; then | |
| 1625 | 1625 | cat <<\_ACEOF | |
| 1626 | - c-ares configure 1.32.0 | ||
| 1626 | + c-ares configure 1.32.1 | ||
| 1627 | 1627 | generated by GNU Autoconf 2.72 | |
| 1628 | 1628 | ||
| 1629 | 1629 | Copyright (C) 2023 Free Software Foundation, Inc. | |
@@ -2267,7 +2267,7 @@ cat >config.log <<_ACEOF | |||
| 2267 | 2267 | This file contains any messages produced by compilers while | |
| 2268 | 2268 | running configure, to aid debugging if configure makes a mistake. | |
| 2269 | 2269 | ||
| 2270 | - It was created by c-ares $as_me 1.32.0, which was | ||
| 2270 | + It was created by c-ares $as_me 1.32.1, which was | ||
| 2271 | 2271 | generated by GNU Autoconf 2.72. Invocation command line was | |
| 2272 | 2272 | ||
| 2273 | 2273 | $ $0$ac_configure_args_raw | |
@@ -3259,7 +3259,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu | |||
| 3259 | 3259 | ||
| 3260 | 3260 | ||
| 3261 | 3261 | ||
| 3262 | - CARES_VERSION_INFO="19:0:17" | ||
| 3262 | + CARES_VERSION_INFO="19:1:17" | ||
| 3263 | 3263 | ||
| 3264 | 3264 | ||
| 3265 | 3265 | ||
@@ -5999,7 +5999,7 @@ fi | |||
| 5999 | 5999 | ||
| 6000 | 6000 | # Define the identity of the package. | |
| 6001 | 6001 | PACKAGE='c-ares' | |
| 6002 | - VERSION='1.32.0' | ||
| 6002 | + VERSION='1.32.1' | ||
| 6003 | 6003 | ||
| 6004 | 6004 | ||
| 6005 | 6005 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h | |
@@ -26339,7 +26339,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |||
| 26339 | 26339 | # report actual input values of CONFIG_FILES etc. instead of their | |
| 26340 | 26340 | # values after options handling. | |
| 26341 | 26341 | ac_log=" | |
| 26342 | - This file was extended by c-ares $as_me 1.32.0, which was | ||
| 26342 | + This file was extended by c-ares $as_me 1.32.1, which was | ||
| 26343 | 26343 | generated by GNU Autoconf 2.72. Invocation command line was | |
| 26344 | 26344 | ||
| 26345 | 26345 | CONFIG_FILES = $CONFIG_FILES | |
@@ -26407,7 +26407,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ | |||
| 26407 | 26407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 26408 | 26408 | ac_cs_config='$ac_cs_config_escaped' | |
| 26409 | 26409 | ac_cs_version="\\ | |
| 26410 | - c-ares config.status 1.32.0 | ||
| 26410 | + c-ares config.status 1.32.1 | ||
| 26411 | 26411 | configured by $0, generated by GNU Autoconf 2.72, | |
| 26412 | 26412 | with options \\"\$ac_cs_config\\" | |
| 26413 | 26413 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,10 +2,10 @@ dnl Copyright (C) The c-ares project and its contributors | |||
| 2 | 2 | dnl SPDX-License-Identifier: MIT | |
| 3 | 3 | AC_PREREQ([2.69]) | |
| 4 | 4 | ||
| 5 | - AC_INIT([c-ares], [1.32.0], | ||
| 5 | + AC_INIT([c-ares], [1.32.1], | ||
| 6 | 6 | [c-ares mailing list: http://lists.haxx.se/listinfo/c-ares]) | |
| 7 | 7 | ||
| 8 | - CARES_VERSION_INFO="19:0:17" | ||
| 8 | + CARES_VERSION_INFO="19:1:17" | ||
| 9 | 9 | dnl This flag accepts an argument of the form current[:revision[:age]]. So, | |
| 10 | 10 | dnl passing -version-info 3:12:1 sets current to 3, revision to 12, and age to | |
| 11 | 11 | dnl 1. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,11 +32,11 @@ | |||
| 32 | 32 | ||
| 33 | 33 | #define ARES_VERSION_MAJOR 1 | |
| 34 | 34 | #define ARES_VERSION_MINOR 32 | |
| 35 | - #define ARES_VERSION_PATCH 0 | ||
| 35 | + #define ARES_VERSION_PATCH 1 | ||
| 36 | 36 | #define ARES_VERSION \ | |
| 37 | 37 | ((ARES_VERSION_MAJOR << 16) | (ARES_VERSION_MINOR << 8) | \ | |
| 38 | 38 | (ARES_VERSION_PATCH)) | |
| 39 | - #define ARES_VERSION_STR "1.32.0" | ||
| 39 | + #define ARES_VERSION_STR "1.32.1" | ||
| 40 | 40 | ||
| 41 | 41 | #define CARES_HAVE_ARES_LIBRARY_INIT 1 | |
| 42 | 42 | #define CARES_HAVE_ARES_LIBRARY_CLEANUP 1 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ | |||
| 15 | 15 | @SET_MAKE@ | |
| 16 | 16 | ||
| 17 | 17 | # aminclude_static.am generated automatically by Autoconf | |
| 18 | - # from AX_AM_MACROS_STATIC on Thu Jul 4 07:03:12 EDT 2024 | ||
| 18 | + # from AX_AM_MACROS_STATIC on Sun Jul 7 10:45:53 EDT 2024 | ||
| 19 | 19 | ||
| 20 | 20 | # Copyright (C) The c-ares project and its contributors | |
| 21 | 21 | # SPDX-License-Identifier: MIT | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -217,19 +217,31 @@ struct ares__thread_mutex { | |||
| 217 | 217 | ||
| 218 | 218 | ares__thread_mutex_t *ares__thread_mutex_create(void) | |
| 219 | 219 | { | |
| 220 | + pthread_mutexattr_t attr; | ||
| 220 | 221 | ares__thread_mutex_t *mut = ares_malloc_zero(sizeof(*mut)); | |
| 221 | 222 | if (mut == NULL) { | |
| 222 | 223 | return NULL; | |
| 223 | 224 | } | |
| 224 | 225 | ||
| 225 | - if (pthread_mutex_init(&mut->mutex, NULL) != 0) { | ||
| 226 | + if (pthread_mutexattr_init(&attr) != 0) { | ||
| 227 | + ares_free(mut); /* LCOV_EXCL_LINE: UntestablePath */ | ||
| 228 | + return NULL; /* LCOV_EXCL_LINE: UntestablePath */ | ||
| 229 | + } | ||
| 230 | + | ||
| 231 | + if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) != 0) { | ||
| 232 | + goto fail; /* LCOV_EXCL_LINE: UntestablePath */ | ||
| 233 | + } | ||
| 234 | + | ||
| 235 | + if (pthread_mutex_init(&mut->mutex, &attr) != 0) { | ||
| 226 | 236 | goto fail; /* LCOV_EXCL_LINE: UntestablePath */ | |
| 227 | 237 | } | |
| 228 | 238 | ||
| 239 | + pthread_mutexattr_destroy(&attr); | ||
| 229 | 240 | return mut; | |
| 230 | 241 | ||
| 231 | 242 | /* LCOV_EXCL_START: UntestablePath */ | |
| 232 | 243 | fail: | |
| 244 | + pthread_mutexattr_destroy(&attr); | ||
| 233 | 245 | ares_free(mut); | |
| 234 | 246 | return NULL; | |
| 235 | 247 | /* LCOV_EXCL_STOP */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments