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

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Mar 10 17:07:37 UTC 2019


#29537: verify intptr_t round-trip through void *
----------------------------------------+----------------------------------
 Reporter:  catalyst                    |          Owner:  (none)
     Type:  defect                      |         Status:
                                        |  needs_information
 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                    |        Sponsor:
----------------------------------------+----------------------------------
Changes (by rl1987):

 * status:  needs_revision => needs_information


Comment:

 By doing exhaustive check over the entire ranges of signed and unsigned
 integers we prove that `intptr_t` and `void *` interoperability is
 possible for all values in these ranges, instead of the ones we deem to be
 dangerous. I'm putting this code into `test-slow` to address the problem
 of it taking too long.

 On what basis do we deem above ranges to be dangerous?

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


More information about the tor-bugs mailing list