Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-05-19 | cargo-online-mode configure argument | Sebastian Hahn | |
Passing --enable-cargo-online-mode during configure allows cargo to make network requests while building Tor or running tests. If this flag is not supplied, the dependencies need to be available in the form of a local mirror. | |||
2017-05-19 | Add rustfmt.toml | Sebastian Hahn | |
2017-05-19 | Run cargo test during make check | Sebastian Hahn | |
2017-05-19 | Add some Rust utility functions and print support | Sebastian Hahn | |
This gives an indication in the log that Tor was built with Rust support, as well as laying some groundwork for further string-returning APIs to be converted to Rust | |||
2017-04-29 | Add --enable-rust configure switch | Sebastian Hahn | |
Introduce a way to optionally enable Rust integration for our builds. No actual Rust code is added yet and specifying the flag has no effect other than failing the build if rustc and cargo are unavailable. | |||
2017-04-28 | Fix a brazen memleak in consdiffmgr_add_consensus() | Nick Mathewson | |
2017-04-28 | Increase MALLOC_MP_LIM to 16MB | Nick Mathewson | |
Increase the maximum allowed size passed to mprotect(PROT_WRITE) from 1MB to 16MB. This was necessary with the glibc allocator in order to allow worker threads to allocate more memory -- which in turn is necessary because of our new use of worker threads for compression. Closes ticket #22096. Found while working on #21648. | |||
2017-04-27 | Merge branches 'consdiffmgr_orig_squashed' and 'actually_compute_diffs_squashed' | Nick Mathewson | |
2017-04-27 | Pre-compress consensus diffs with supported consensus methods. | Nick Mathewson | |
2017-04-27 | Store archived consensuses compressed on disk. | Nick Mathewson | |
I'm just using gzip compression now, for performance. | |||
2017-04-27 | Functionality to ensure there is space to add files to cache. | Nick Mathewson | |
2017-04-27 | New force-delete option on consensus_cache_delete_pending() | Nick Mathewson | |
If we're out of file space in the storage directory, we'll need to get rid of old files fast. | |||
2017-04-27 | Lower the file limit in consdiffmgr, to support seccomp2 | Nick Mathewson | |
2017-04-27 | Pass incoming consensus documents to the consdiffmgr code | Nick Mathewson | |
2017-04-27 | Fix use-after-free bug in storage_dir sandbox code. | Nick Mathewson | |
2017-04-27 | Clean the consdiffmgr cache and launch new diffs as needed. | Nick Mathewson | |
2017-04-27 | Initialize consdiffmgr when running as (or becoming) a server. | Nick Mathewson | |
2017-04-27 | Use a cast to try to avoid a tautalogical comparison warning | Nick Mathewson | |
2017-04-27 | Merge branch 'parse_accept_encoding' | Nick Mathewson | |
2017-04-27 | Move the "supported compression bitmask" into compress.[ch] | Nick Mathewson | |
2017-04-27 | Document and test nul-terminating behavior of tor_uncompress() | Nick Mathewson | |
We added this as a safety feature, but there are a few places in the code that actually depend on it. | |||
2017-04-27 | whitespace fix | Nick Mathewson | |
2017-04-27 | Re-enable the partial-input test for zstd. | Nick Mathewson | |
There were two issues here: first, zstd didn't exhibit the right behavior unless it got a very large input. That's fine. The second issue was a genuine bug, fixed by 39cfaba9e26d1ca0a. | |||
2017-04-27 | Fix handling of "final" flag in zstd decompression | Nick Mathewson | |
We were returning "DONE" on truncated input streams, which was not what we wanted. | |||
2017-04-27 | Have a separate entry point for each compresion test | Nick Mathewson | |
2017-04-27 | Merge remote-tracking branch 'ahf/bugs/22085' | Nick Mathewson | |
2017-04-27 | Merge branch 'dirreq' | Nick Mathewson | |
2017-04-27 | Test support for multiple compression backends in the buffer code. | Alexander Færøy | |
This patch refactors the buffer compression tests to support multiple comprssion backends. See: https://bugs.torproject.org/22085 | |||
2017-04-27 | Clean up mentions of 'zlib' and rename the mentions to 'compressed'. | Alexander Færøy | |
This patch cleans up in various places where 'zlib' is mentioned. | |||
2017-04-27 | Refactor compression tests into a single test. | Alexander Færøy | |
This patch refactors our compression tests such that deflate, gzip, lzma, and zstd are all tested using the same code. Additionally we use run-time checks to see if the given compression method is supported instead of using HAVE_LZMA and HAVE_ZSTD. See: https://bugs.torproject.org/22085 | |||
2017-04-27 | Improve control flow in authority_certs_fetch_resource_impl | Nick Mathewson | |
2017-04-27 | Include UPLOAD_RENDDESC_V2 in PURPOSE_IS_UPLOAD | Nick Mathewson | |
This was only used in one place before, and it's safe to update it. | |||
2017-04-26 | Fix compilation when lzma or zstd is absent | Nick Mathewson | |
2017-04-26 | Avoid a warning from the use of floating-point in zstd | Nick Mathewson | |
Replace "(preset - 0.5) * 1mb" with "preset * 1mb - 0.5 mb", to avoid warning about converting double to size_t. | |||
2017-04-26 | Merge remote-tracking branch 'ahf/bugs/22066' | Nick Mathewson | |
2017-04-26 | Approximate memory usage needed for the Zstandard backend. | Alexander Færøy | |
This patch adds support for measuring the approximated memory usage by the individual `tor_zstd_compress_state_t` object instances. See: https://bugs.torproject.org/22066 | |||
2017-04-26 | Better documentation for `tor_uncompress()`. | Alexander Færøy | |
This patch fixes the documentation string for `tor_uncompress()` to ensure that it does not explicitly mention zlib or gzip since we now support multiple compression backends. | |||
2017-04-26 | Approximate memory usage needed for the LZMA backend. | Alexander Færøy | |
This patch adds support for measuring the approximated memory usage by the individual `tor_lzma_compress_state_t` object instances. The LZMA library provides the functions `lzma_easy_encoder_memusage()` and `lzma_easy_decoder_memusage()` which is used to find the estimated usage in bytes. See: https://bugs.torproject.org/22066 | |||
2017-04-26 | Fix coverity cid 1405509 | Sebastian Hahn | |
Locking in the init function is not necessary, but coverity gets confused about it. So let's trick it. | |||
2017-04-26 | Fix coverity cid 1405510 | Sebastian Hahn | |
This is a false positive, but let's appease coverity. | |||
2017-04-26 | Store compression overhead from `tor_compress_state_t`. | Alexander Færøy | |
The `tor_compress_state_t` data-type is used as a wrapper around the more specialized state-types used by the various compression backends. This patch ensures that the overhead of this "thin" wrapper type is included in the value returned by `tor_compress_get_total_allocation()`. See: https://bugs.torproject.org/22066 | |||
2017-04-26 | Remove unused header from the Zstandard compression backend. | Alexander Færøy | |
Since we stopped looking at Zstandard error codes there is no need to include the zstd_errors.h header file anymore. | |||
2017-04-25 | Configure sandbox using consdiffmgr; free cdm on exit. | Nick Mathewson | |
2017-04-25 | Bitmask out the compression methods that we do not support | Nick Mathewson | |
2017-04-25 | Tests for parse_accept_encoding | Nick Mathewson | |
2017-04-25 | Parse recognized entries from the Accept-Encoding header. | Nick Mathewson | |
2017-04-25 | Use x-lzma, not x-lzma2, as the identifier | Nick Mathewson | |
2017-04-25 | Teach consdiffmgr to remember two digests: one compressed, one not. | Nick Mathewson | |
2017-04-25 | Function to convert compression methods to/from strings. | Nick Mathewson | |
2017-04-25 | Add stub function for libor-trace. | Alexander Færøy | |
OS X's ar(1) doesn't allow us to create an archive with no object files. This patch adds a stub file with a stub function in it to make OS X happy again. |