[tor-bugs] #18716 [Tor]: MEMAREA_ALIGN_MASK is wrong for MSVC on x64

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Apr 3 23:19:43 UTC 2016


#18716: MEMAREA_ALIGN_MASK is wrong for MSVC on x64
------------------------+--------------------------------
     Reporter:  wbenny  |      Owner:
         Type:  defect  |     Status:  new
     Priority:  Medium  |  Milestone:
    Component:  Tor     |    Version:  Tor: 0.2.8.2-alpha
     Severity:  Normal  |   Keywords:  assert msvc x64
Actual Points:          |  Parent ID:
       Points:          |   Reviewer:
      Sponsor:          |
------------------------+--------------------------------
 #define MEMAREA_ALIGN_MASK 7lu

 change to:

 #define MEMAREA_ALIGN_MASK 7llu

 otherwise assert is thrown here:
 memarea.c:128:  tor_assert(realign_pointer(res->next_mem) ==
 res->next_mem);

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


More information about the tor-bugs mailing list