[tor-bugs] #29537 [Core Tor/Tor]: verify intptr_t round-trip through void *

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 14 17:33:23 UTC 2019


#29537: verify intptr_t round-trip through void *
----------------------------------------+----------------------------------
 Reporter:  catalyst                    |          Owner:  (none)
     Type:  defect                      |         Status:  needs_revision
 Priority:  Medium                      |      Milestone:  Tor:
                                        |  0.4.1.x-final
Component:  Core Tor/Tor                |        Version:
 Severity:  Normal                      |     Resolution:
 Keywords:  portability technical-debt  |  Actual Points:
Parent ID:                              |         Points:
 Reviewer:  catalyst, teor              |        Sponsor:
----------------------------------------+----------------------------------

Comment (by rl1987):

 Are we doing the right thing here though? Intuitively, if we're writing
 code that a compiler might very reasonably optimize away, aren't we on a
 wrong path?

 Perhaps we should create tickets to fix parts of tor codebase that rely on
 putting integers into `void *` one by one?

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


More information about the tor-bugs mailing list