summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-06-21Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-21Merge branch 'additional_rust_test_fixes' into maint-0.3.4Nick Mathewson
2018-06-21Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-21Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-06-21add a bn.h include to crypto_dh.cNick Mathewson
2018-06-20fix memory leak in protover.cRoger Dingledine
Fix a memory leak where directory authorities would leak a chunk of memory for every router descriptor every time they considered voting. This bug was taking down directory authorities in the live network due to out-of-memory issues. Fixes bug 26435; bugfix on 0.3.3.6.
2018-06-20add build.rs to EXTRA_DISTNick Mathewson
2018-06-20eol@eof is still the law in 0.3.4 :(Nick Mathewson
2018-06-20Add a leak suppression for backtrace_allocNick Mathewson
This appears to be an internal rust thing: I don't know why it's leaking. We should investigate further.
2018-06-20Merge branch 'maint-0.3.4' into additional_rust_test_fixesNick Mathewson
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20Fix clang warnings introduced by 9f2b887c5d251b93ee9def708Nick Mathewson
2018-06-20Fix memory leak in CryptoDigest typeNick Mathewson
If you're owning a C pointer, you need to implement Drop.
2018-06-20Disable doctests in src/rust/crypto module.Nick Mathewson
These all need C linking to work, and so far, rustdoc does not seem to respect cargo setting about build scripts or RUSTOPTIONS.
2018-06-20Fix bugs in rust digest testsNick Mathewson
2018-06-20Merge branch 'rust_build_script_v3' into additional_rust_test_fixesNick Mathewson
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20rust: Remove --all-features flag from `cargo test` call in test_rust.sh.Isis Lovecruft
We'd like to feature gate code that calls C from Rust, as a workaround to several linker issues when running `cargo test` (#25386), and we can't feature gate anything out of test code if `cargo test` is called with `--all-features`. * FIXES #26400: https://bugs.torproject.org/26400
2018-06-20Don't use any asserts(), even raw, in format_number_sigsafe().Nick Mathewson
Also explain why.
2018-06-20Use raw_assert() in write_all().Nick Mathewson
This makes tor_log() finally non-circular.
2018-06-20Use raw_assert() in central allocation functions.Nick Mathewson
This is, again, to avoid circularity in the log code.
2018-06-20Use raw_assert in mutex functions to avoid circularity in logs.Nick Mathewson
2018-06-20Allow raw_assert() to dump stack traces.Nick Mathewson
It doesn't do this as beautifully as tor_assert(), but it doesn't depend on any higher-level code.
2018-06-20Remove log dependency from backtrace.[ch]Nick Mathewson
2018-06-20Use compat_compiler to restore macros in torerr.hNick Mathewson
2018-06-20Split compiler-compatibility parts of compat.hNick Mathewson
2018-06-20Move horrible-emergency handling into torerr.[ch]Nick Mathewson
Previously we had code like this for bad things happening from signal handlers, but it makes sense to use the same logic to handle cases when something is happening at a level too low for log.c to be involved. My raw_assert*() stuff now uses this code.
2018-06-20Use raw_assert in tor_gettimeofdayNick Mathewson
We don't want to actually be calling logs when gettimeofday() fails, since we need gettimeofday() to log.
2018-06-20Remove all use of the assert.h headerNick Mathewson
Nothing in Tor has actually called assert() for some while.
2018-06-20Add raw_assert() variants for cases where we cannot log.Nick Mathewson
Remove a different raw_assert() macro declared in log.c
2018-06-20Remove dmalloc support; closes #26426Nick Mathewson
Dmalloc hasn't seen a release in over a decade, and there are much better tools to use these days.
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Simplify AM_CPPFLAGS include setupNick Mathewson
We had accumulated a bunch of cruft here. Now let's only include src and src/ext. (exception: src/trunnel is autogenerated code, and need to include src/trunnel.) This commit will break the build hard. The next commit will fix it.
2018-06-20Merge remote-tracking branch 'neel/b25886c'Nick Mathewson
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20eol@eof in test-dir.cNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20Merge branch 'asn_bug24977_final_squashed' into maint-0.3.4Nick Mathewson
2018-06-20Recreate nodelist before use if it's outdated.George Kadianakis
We currently only do the check when we are about to use the HSDir indices.
2018-06-20Recreate voting schedule before use if it's outdated.George Kadianakis
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20rust: Remove redundant "testing" feature from tor_log crate.Isis Lovecruft
It was synonymous with the builtin "test" feature. * FIXES #26399: https://bugs.torproject.org/26399
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20Enable DEBUG_SMARTLIST in unit testsrl1987
2018-06-20Refrain from accessing empty smartlist in test_bridges_clear_bridge_listrl1987
Just check that smartlist length is zero instead
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20Merge remote-tracking branch 'catalyst-github/bug26415_034' into maint-0.3.4Nick Mathewson
2018-06-19Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-19Fix linker errors when building Tor.Alexander Færøy
This patch fixes linking errors when compiling Tor with the dirauth module disabled. See: https://bugs.torproject.org/26418