[tor-bugs] #24733 [Core Tor/Tor]: Loading ifc.ifc_buf using the new tor_free() causes undefined behaviour on x86_64 macOS

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jan 8 17:59:33 UTC 2018


#24733: Loading ifc.ifc_buf using the new tor_free() causes undefined behaviour on
x86_64 macOS
-------------------------------------------------+-------------------------
 Reporter:  teor                                 |          Owner:  teor
     Type:  defect                               |         Status:
                                                 |  needs_revision
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.3.3.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  address-sanitizer, unexpected-       |  Actual Points:  0.1
  consequences, review-group-28                  |
Parent ID:                                       |         Points:  0.1
 Reviewer:                                       |        Sponsor:
                                                 |  Sponsor8-can
-------------------------------------------------+-------------------------

Comment (by catalyst):

 Replying to [comment:11 teor]:

 > I think refactoring my patch to do this in a separate function is a good
 solution.
 >
 > And then a separate ticket for evaluate-once, if it is even possible.

 Sounds good to me.

 We might also want to comment the implementation of `tor_free()` to warn
 about this issue possibly arising elsewhere in the future when packed
 structures are involved.

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


More information about the tor-bugs mailing list