aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-03-03Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-03Merge branch 'ticket23814' into maint-0.3.3Nick Mathewson
2018-03-03bump to 0.3.3.3-alpha-devNick Mathewson
2018-03-01increment to 0.3.3.3-alphaNick Mathewson
2018-03-01Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-01Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-03-01Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-03-01Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-03-01Protover tests: disable some obsoleted testsNick Mathewson
These were meant to demonstrate old behavior, or old rust behavior. One of them _should_ work in Rust, but won't because of implementation details. We'll fix that up later.
2018-03-01Spec conformance on protover: always reject ranges where lo>hiNick Mathewson
2018-03-01Forbid UINT32_MAX as a protocol versionNick Mathewson
The C code and the rust code had different separate integer overflow bugs here. That suggests that we're better off just forbidding this pathological case. Also, add tests for expected behavior on receiving a bad protocol list in a consensus. Fixes another part of 25249.
2018-03-01Forbid "-0" as a protocol version.Nick Mathewson
Fixes part of 24249; bugfix on 0.2.9.4-alpha.
2018-03-01Add more of Teor's protover tests.Nick Mathewson
These are as Teor wrote them; I've disabled the ones that don't pass yet, with XXXX comments.
2018-03-01Add some protover vote round-trip tests from Teor.Nick Mathewson
I've refactored these to be a separate function, to avoid tricky merge conflicts. Some of these are disabled with "XXXX" comments; they should get fixed moving forward.
2018-03-01Add another NULL-pointer fix for protover.c.Nick Mathewson
This one can only be exploited if you can generate a correctly signed consensus, so it's not as bad as 25074. Fixes bug 25251; also tracked as TROVE-2018-004.
2018-03-01Correctly handle NULL returns from parse_protocol_list when voting.Nick Mathewson
In some cases we had checked for it, but in others we had not. One of these cases could have been used to remotely cause denial-of-service against directory authorities while they attempted to vote. Fixes TROVE-2018-001.
2018-02-21Revert 4438ef32's changes to test_address.cNick Mathewson
Apparently some versions of the mac sdk care about the ordering of net/if.h wrt other headers. Fixes bug 25319; bug not in any released tor.
2018-02-20Remove a bunch of other redundant #includesNick Mathewson
Folks have found two in the past week or so; we may as well fix the others. Found with: \#!/usr/bin/python3 import re def findMulti(fname): includes = set() with open(fname) as f: for line in f: m = re.match(r'^\s*#\s*include\s+["<](\S+)[>"]', line) if m: inc = m.group(1) if inc in includes: print("{}: {}".format(fname, inc)) includes.add(m.group(1)) import sys for fname in sys.argv[1:]: findMulti(fname)
2018-02-20Merge remote-tracking branch 'fristonio/ticket-25261'Nick Mathewson
2018-02-18Use autoconf to check for optional zstd functionality.Nick Mathewson
Fixes a bug in our zstd-static code. Bug not in any released version of Tor.
2018-02-16Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-02-16Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-02-16Merge remote-tracking branch 'dgoulet/ticket24902_029_05' into maint-0.2.9Nick Mathewson
2018-02-16Whoops. 256 was not big enough.Nick Mathewson
2018-02-16Allow checkpointing of non-sha1 digests.Nick Mathewson
This is necessary because apparently v3 rendezvous cpath hops use sha3, which I had forgotten. Bugfix on master; bug not in any released Tor.
2018-02-16stop calling channel_mark_client in response to a create_fastRoger Dingledine
since all it does is produce false positives this commit should get merged into 0.2.9 and 0.3.0 *and* 0.3.1, even though the code in the previous commit is already present in 0.3.1. sorry for the mess. [Cherry-picked]
2018-02-16stop calling channel_mark_client in response to a create_fastRoger Dingledine
since all it does is produce false positives this commit should get merged into 0.2.9 and 0.3.0 *and* 0.3.1, even though the code in the previous commit is already present in 0.3.1. sorry for the mess.
2018-02-16backport to make channel_is_client() accurateRoger Dingledine
This commit takes a piece of commit af8cadf3a9 and a piece of commit 46fe353f25, with the goal of making channel_is_client() be based on what sort of connection handshake the other side used, rather than seeing whether the other side ever sent a create_fast cell to us.
2018-02-16Remove the return value of node_get_prim_orport() and node_get_prim_dirport()Neel Chauhan
2018-02-16Compilation workaround for windows, which lacks O_SYNCNick Mathewson
Bug not in any released Tor.
2018-02-16tor_zstd_format_version shouldn't be built when !HAVE_ZSTDNick Mathewson
Fixes bug 25276; bugfix not in any released Tor.
2018-02-15Merge branch 'maint-0.3.3'Nick Mathewson
2018-02-15Merge remote-tracking branch 'dgoulet/ticket24343_033_01' into maint-0.3.3Nick Mathewson
2018-02-15Merge remote-tracking branch 'ffmancera-1/bug18918'Nick Mathewson
2018-02-15Merge branch 'bug23909'Nick Mathewson
2018-02-15Merge branch 'bug24914'Nick Mathewson
2018-02-15Fix a stack-protector warning: don't use a variable-length bufferNick Mathewson
Instead, define a maximum size, and enforce it with an assertion.
2018-02-15Merge branch 'onion_ntor_malloc_less'Nick Mathewson
2018-02-15Documentation fixes suggested by catalyst.Nick Mathewson
2018-02-15Merge remote-tracking branch 'isis/bug25185'Nick Mathewson
2018-02-15Merge branch 'maint-0.3.3'Nick Mathewson
2018-02-15Merge remote-tracking branch 'isis/bug25171' into maint-0.3.3Nick Mathewson
2018-02-15Merge branch '25162_zstd_static'Nick Mathewson
2018-02-15This stats_n_seconds_working variable needs to be static now.Nick Mathewson
(When a variable isn't going to be declared extern in the header, we require that it be static.)
2018-02-15Merge remote-tracking branch 'valentecaio/t-25081'Nick Mathewson
2018-02-15Merge remote-tracking branch 'valentecaio/t-24714'Nick Mathewson
2018-02-16tests: Remove duplicate included header file in src/test/test.c.Isis Lovecruft
* FIXES #25271: https://bugs.torproject.org/25271
2018-02-15Merge branch 'bug18105'Nick Mathewson
2018-02-15Merge branch 'bug24484_squashed'Nick Mathewson
2018-02-15Remove workaround code for systems where free(NULL) is busted.Nick Mathewson
Add an autoconf test to make sure we won't regret it. Closes ticket 24484.