summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2017-06-28Fix crash in LZMA module when the Sandbox is enabled.Alexander Færøy
This patch fixes a crash in our LZMA module where liblzma will allocate slightly more data than it is allowed to by its limit, which leads to a crash. See: https://bugs.torproject.org/22751
2017-06-26Fix a coverity warning about a no-op assert with-64 bit size_tNick Mathewson
This is CID 1403400
2017-06-20Merge branch 'bug22502_redux_031' into maint-0.3.1Nick Mathewson
2017-06-20Merge branch 'bug22672_031' into maint-0.3.1Nick Mathewson
2017-06-20Merge remote-tracking branch 'argonblue/bug22638' into maint-0.3.1Nick Mathewson
2017-06-20Enforce the rule that COMPRESS_OK means progress was made.Nick Mathewson
If COMPRESS_OK occurs but data is neither consumed nor generated, treat it as a BUG and a COMPRESS_ERROR. This change is meant to prevent infinite loops in the case where we've made a mistake in one of our compression backends. Closes ticket 22672.
2017-06-20mingw/windows printf lacks %zd ; use %lu and casts insteadNick Mathewson
(This approach can lose accuracy, but it's only in debug-level messages.) Fixes windows compilation. Bugfix on recent compress.c changes; bug not in any released Tor.
2017-06-20Fix compress_none.c header commentTaylor Yu
The Doxygen \file markup for compress_none.c had the wrong filename. Fixes #22638.
2017-06-20Correct the fix to bug 22629 to permit trailing non-garbageNick Mathewson
This change makes it so that we can decompress concatenated zstd outputs.
2017-06-20Merge remote-tracking branch 'teor/bug22502' into maint-0.3.1Nick Mathewson
2017-06-19Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-06-19Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-06-16Permit the fchmod system call.Nick Mathewson
Fixes bug 22516; bugfix on 0.2.5.4-alpha.
2017-06-16Add extra logging during compression and decompressionteor
This helps diagnose failures. Part of #22502.
2017-06-16Return TOR_COMPRESS_BUFFER_FULL when zstd has additional inputteor
Fixes #22628.
2017-06-16Remove a redundant conditional in tor_zstd_compress_processteor
Part of #22502
2017-06-16Move a comment to the right place in tor_zstd_compress_processteor
Part of #22502
2017-06-16Check for trailing input garbage in tor_compress_impl() when decompressingteor
Fixes #22629.
2017-06-16Check if tor_compress_new() returns NULL in tor_compress_impl()teor
Partial fix to 22626.
2017-06-05Merge branch 'maint-0.3.0'Nick Mathewson
2017-06-05Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-06-05Improve documentation on get_{peer,own}_certificate()Nick Mathewson
Make it clear that we're returning a newly allocated copy.
2017-06-05Test prerequisites: function to dup a cert, make get_own_cert mockable.Nick Mathewson
2017-06-05On v3 link handshake, send the correct link certificateNick Mathewson
Previously we'd send the _current_ link certificate, which would cause a handshaking failure when the TLS context rotated.
2017-05-30Merge remote-tracking branch 'teor/bug22424'Nick Mathewson
2017-05-28Replace 3-star pointer with 2-star pointerDaniel Pinto
2017-05-28If we do underflow the know usage of a storage, recalculate itteor
Fixes bug #22424 on 0.3.1.1-alpha.
2017-05-28Refactor storage usage reductions into a static functionteor
No behaviour change. Part of #22424.
2017-05-28Don't underflow usage when it is unknown and a file is removedteor
Part of #22424.
2017-05-28Always check for usage underflow when removing a file in storage.cteor
Part of #22424.
2017-05-28Fix comment typos in storage.cteor
2017-05-28Fix crash with %includeDaniel Pinto
Fixes crash when including a folder that contains a non-empty file without any values followed by any other non-empty file.
2017-05-26Cleanup MOCK_IMPL (etc) to be findable with etagsNick Mathewson
A fair number of our mock_impl declarations were messed up so that even our special AM_ETAGSFLAGS couldn't find them. This should be a whitespace-only patch.
2017-05-23Fix comments of functions that return tor_snprintfteor
No code changes needed: in the places where we actually check the return value of these functions, we handle it correctly.
2017-05-22fix two typos in commentsRoger Dingledine
closes ticket 22322
2017-05-19Remove call to get_unquoted_path in config_process_include()Nick Mathewson
parse_config_line_from_str_verbose() already looks for strings that are surrounded by quotes, and processes them with unescape_string(). So things were getting decoded twice, which was (in turn) playing havoc with backslashes on Windows.
2017-05-19strlen() returns size_tNick Mathewson
2017-05-19Merge branch 'add_rust_squashed'Nick Mathewson
2017-05-19Add some Rust utility functions and print supportSebastian 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-05-19Merge remote-tracking branch 'jigsaw/torrc-dir-fix-1922_squashed2'Nick Mathewson
2017-05-18Add support for %include funcionality on torrc #1922Daniel Pinto
config_get_lines is now split into two functions: - config_get_lines which is the same as before we had %include - config_get_lines_include which actually processes %include
2017-05-17Fixed error on BASEXX_NOPAD LEN and BUFSIZE macros #21872Daniel Pinto
2017-05-12Add API for getting human readable descriptions of a compress_method_tAlexander Færøy
See: https://bugs.torproject.org/21667
2017-05-10In channelpadding tests that touch libevent, call event_reinit().Nick Mathewson
This is necessary to avoid crashes and test failures on kevent-based systems. Fixes bug 22209; bug not in any released Tor.
2017-05-08Merge branch 'maint-0.3.0'Nick Mathewson
2017-05-08Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-05-02Merge branch 'compress_none_v2_squashed'Nick Mathewson
2017-05-02Treat the identity transformation as another kind of compression.Nick Mathewson
This will allow us to treat NO_METHOD as a real compression method, and to simplify code that currently does if (compressing) { compress } else { copy }
2017-05-01Rename x-lzma to x-tor-lzmaNick Mathewson
We shouldn't call it lzma, because we are imposing a limit on the memory needed for decoding.
2017-05-01Merge remote-tracking branch 'ahf/bugs/21665'Nick Mathewson