[tor-bugs] #33060 [Core Tor/sbws]: Check that consensus timestamp lists is initialied and has at list one item
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Jan 26 13:21:09 UTC 2020
#33060: Check that consensus timestamp lists is initialied and has at list one item
-------------------------------+-------------------------------
Reporter: juga | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: sbws: 1.1.x-final
Component: Core Tor/sbws | Version: sbws: 1.1.0
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: 0.1 | Reviewer:
Sponsor: |
-------------------------------+-------------------------------
Working on #30909 realized that even if I realized that when checking ` if
len(self._consensus_timestamps) >= 1`, in the case that
`self._consensus_timestamps` wouldn't not be initialized, it'd give a type
error.
That doesn't currently happen because that code is call after the
`__init__` method. It'd still be safer to to check that it's been
initialized.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33060>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list