[tor-bugs] #31451 [Core Tor/Tor]: CID 1452041: Use 64-bit literal in parse_log_domain()

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 19 17:54:42 UTC 2019


#31451: CID 1452041: Use 64-bit literal in parse_log_domain()
------------------------------+--------------------------------
     Reporter:  nickm         |      Owner:  nickm
         Type:  defect        |     Status:  assigned
     Priority:  Medium        |  Milestone:  Tor: 0.4.2.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 We use `(1u<<i)` as the value for a log domain mask here, but this will
 fail on 32-bit systems once we have more than 32 log domains.
 Fortunately, we aren't there yet: the extra bits are only used for flags.
 Still, we should fix this.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31451>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list