[tor-bugs] #17983 [Tor]: Build tor with -fwrapv by default

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Jan 3 07:16:27 UTC 2016


#17983: Build tor with -fwrapv by default
-------------------------+------------------------------------
 Reporter:  teor         |          Owner:
     Type:  enhancement  |         Status:  new
 Priority:  Medium       |      Milestone:  Tor: 0.2.8.x-final
Component:  Tor          |        Version:
 Severity:  Normal       |     Resolution:
 Keywords:               |  Actual Points:
Parent ID:               |         Points:
  Sponsor:               |
-------------------------+------------------------------------

Comment (by teor):

 UBSan is `-fsanitize=undefined`, but it can also be used like
 `-fsanitize=address,undefined`, or using the integer sanitizer only.

 We could build with `-fwrapv` when `-fsanitize` does not appear on the
 command-line. If they are used together, this could hide undefined
 behaviour when people are explicitly checking for it. But suddenly
 switching off `-fwrapv` could also cause subtle bugs.

 So let's make `-fwrapv` it a ./configure option that's on by default, and
 people can turn it off if they don't want it.

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


More information about the tor-bugs mailing list