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

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Feb 25 18:06:54 UTC 2019


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

 * status:  needs_revision => needs_review


Comment:

 The following patch checks that we can put all valid values of `int` and
 `unsigned int` into `void *` and take them back. I suppose this is the
 ranges of number we care about in practice, as we may want to put signed
 and unsigned integer values into smartlist.

 https://github.com/torproject/tor/pull/724

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


More information about the tor-bugs mailing list