Nick Mathewson
|
4a4f1e44af
Merge branch 'prop140_21643_diff_only_squashed'
|
7 years ago |
Nick Mathewson
|
643c9078c9
Switch ed-command parsing to use tor_parse_long.
|
7 years ago |
Nick Mathewson
|
672e2a5461
Consdiff: extract router ID hash iteration functions
|
7 years ago |
Nick Mathewson
|
83049cebc0
Make CONSENSUS_LINE_MAX_LEN a real define
|
7 years ago |
Nick Mathewson
|
5e81436428
Remove a couple of {\n\n instances
|
7 years ago |
Nick Mathewson
|
e84276124b
Use a better for X outside of base64_compare_table.
|
7 years ago |
Nick Mathewson
|
91e3250bf1
Reindent a few labels.
|
7 years ago |
Nick Mathewson
|
d8c129a11a
Avoid all needless memory copies when computing consensus diffs.
|
7 years ago |
Nick Mathewson
|
52fa6bb947
Swap memory allocation strategy for lists of lines for diffs
|
7 years ago |
Nick Mathewson
|
b36e311eab
Fill in the missing documentation on the new functions
|
7 years ago |
Nick Mathewson
|
12d428aaff
Prop140: Fix a crash bug.
|
7 years ago |
Nick Mathewson
|
dd92579b63
Add fuzzers for consensus diff backend code
|
7 years ago |
Nick Mathewson
|
653c6d129e
Make consensus diff sha3 operations mockable.
|
7 years ago |
Nick Mathewson
|
6a36e5ff3b
String-based API for consensus diffs.
|
7 years ago |
Nick Mathewson
|
eff9fbd17d
Fix an abstraction violation.
|
7 years ago |
Nick Mathewson
|
69b3e11e59
Use "const" in consdiff.[ch]
|
7 years ago |
Nick Mathewson
|
3647751c2a
prop140: Use sha3-256, not sha2-256
|
7 years ago |
Nick Mathewson
|
d6594bfa8c
Add a couple more cases to reach 100% coverage.
|
7 years ago |
Nick Mathewson
|
c86e77ac20
Cover two more failing cases with unit tests
|
7 years ago |
Nick Mathewson
|
e1418c09fc
Fix an unreachable memory leak.
|
7 years ago |
Nick Mathewson
|
f193b666cd
Remove digest[12]_hex
|
7 years ago |
Nick Mathewson
|
c6046f4db8
Tweak&test log messages on apply_diff
|
7 years ago |
Nick Mathewson
|
5766eed38f
Fixes when applying diffs: Allow 2-line diffs, fix bogus free
|
7 years ago |
Nick Mathewson
|
ab1fd85c99
Mark some warnings as bugs, and as (hopefully) unreachable.
|
7 years ago |
Nick Mathewson
|
bb536a2e73
Check for expected warnings in apply_ed_diff
|
7 years ago |
Nick Mathewson
|
06017f35e8
Fix some logging on failed apply_ed_diff
|
7 years ago |
Nick Mathewson
|
97620cf18f
No need to end a log message with newline.
|
7 years ago |
Nick Mathewson
|
05901f2c6d
test operator cleanup
|
7 years ago |
Nick Mathewson
|
687df259c6
Enforce correct log messages on diff generation failure tests
|
7 years ago |
Nick Mathewson
|
ccb789fe34
Test two more base64cmp cases.
|
7 years ago |