tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 2a6c1585b0f13e03eb7e8b8977d56a5cea8b4ce8
parent eb604f5faaa588cf6bf0cc81dc5f2a3b9e9f9e4f
Author: Nick Mathewson <nickm@torproject.org>
Date:   Fri,  3 Aug 2018 07:33:45 -0400

Merge branch 'maint-0.3.2' into maint-0.3.3

Diffstat:
Achanges/bug20424_029_minimal | 4++++
Mconfigure.ac | 4++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/changes/bug20424_029_minimal b/changes/bug20424_029_minimal @@ -0,0 +1,4 @@ + o Minor bugfixes (compilation): + - When compiling with --enable-openbsd-malloc or --enable-tcmalloc, tell + the compiler not to include the system malloc implementation. Fixes bug + 20424; bugfix on 0.2.0.20-rc. diff --git a/configure.ac b/configure.ac @@ -1724,6 +1724,10 @@ fi if test "$using_custom_malloc" = "no"; then AC_CHECK_FUNCS(mallinfo) fi +if test "$using_custom_malloc" = "yes"; then + # Tell the C compiler not to use the system allocator functions. + TOR_CHECK_CFLAGS([-fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free]) +fi # By default, we're going to assume we don't have mlockall() # bionic and other platforms have various broken mlockall subsystems.