[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #15817 [Tor]: Allow clang runtime sanitizers to be used on tor unit tests
#15817: Allow clang runtime sanitizers to be used on tor unit tests
-----------------------------+--------------------------------
Reporter: teor | Owner:
Type: enhancement | Status: needs_information
Priority: minor | Milestone: Tor: 0.2.7.x-final
Component: Tor | Version: Tor: 0.2.7
Resolution: | Keywords: unit-tests clang
Actual Points: | Parent ID:
Points: |
-----------------------------+--------------------------------
Comment (by teor):
For test-memwipe.c, we can run the sanitizers on the entire executable,
but exempt the function which uses undefined behaviour using a blacklist
with `fun:vmemeq` in it.
For test_bt_cl.c, we can run the sanitizers on the entire executable, but
exempt the function which uses undefined behaviour using a blacklist with
`fun:crash` in it. We also need to pass
`ASAN_OPTIONS=allow_user_segv_handler=1` in the environment to allow tor's
custom backtrace handler to run.
These changes won't impact the other tests.
Is that what you meant?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15817#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs