[tor-bugs] #14875 [Tor]: undefined behaviour abort during unit tests

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Feb 12 08:11:01 UTC 2015


#14875: undefined behaviour abort during unit tests
-----------------------+------------------------------------
 Reporter:  Sebastian  |          Owner:
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:  Tor: 0.2.6.x-final
Component:  Tor        |        Version:
 Keywords:             |  Actual Points:
Parent ID:             |         Points:
-----------------------+------------------------------------
 When compiling with -fsanitize=undefined, there's this issue on OSX:

 address/get_if_addrs_ioctl: [forking] src/common/address.c:1393:37:
 runtime error: member access within misaligned address 0x62100001b924 for
 type 'struct ifreq', which requires 8 byte alignment

 I'm working on a fix. While working on this, I noticed that we also
 provide a buffer to ioctl, and if it is too small, well, we don't do
 anything about it. This was introduced during #12376

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


More information about the tor-bugs mailing list