Skip to content

Bug32588 041 #1828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: maint-0.4.1
Choose a base branch
from
Open

Bug32588 041 #1828

wants to merge 7 commits into from

Conversation

teor2345
Copy link
Contributor

No description provided.

teor2345 and others added 7 commits March 21, 2020 03:36
When IPv6 ORPorts are set to "auto", tor relays and bridges would
advertise an incorrect port in their descriptor.

This may be a low-severity memory safety issue, because the published
port number may be derived from uninitialised or out-of-bounds memory
reads.

Fixes bug 32588; bugfix on 0.2.3.9-alpha.
Return early when there is no suitable IPv6 ORPort.
Show the address and port on error, using a convenience function.

Code simplification and refactoring.

Cleanup after 32588.
Merge tests from maint-0.4.1 with new tests from bug32588_035
in test_router.c.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8523

  • 15 of 18 (83.33%) changed or added relevant lines in 1 file are covered.
  • 13 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.05%) to 61.635%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/feature/relay/router.c 15 18 83.33%
Files with Coverage Reduction New Missed Lines %
src/feature/dirauth/shared_random.c 4 85.0%
src/feature/dirauth/dirvote.c 9 64.61%
Totals Coverage Status
Change from base Build 8489: 0.05%
Covered Lines: 47543
Relevant Lines: 77136

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants