mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 06:50:25 +00:00
Merge pull request #16243 from donaldsharp/ubsan_documentation
doc: Document the usage of --enable-undefined-sanitizer
This commit is contained in:
commit
550a3a819c
@ -1306,6 +1306,16 @@ MemorySanitizer
|
|||||||
|
|
||||||
to ``configure``.
|
to ``configure``.
|
||||||
|
|
||||||
|
UndefinedSanitizer
|
||||||
|
Similar to AddressSanitizer, this tool provides runtime instrumentation for
|
||||||
|
detecting use of undefined behavior in C. Testing your own code with this
|
||||||
|
tool before submission is encouraged. You can enable it by passing::
|
||||||
|
|
||||||
|
--enable-undefined-sanitizer
|
||||||
|
|
||||||
|
to ``configure``. If you run FRR with this you will probably also have
|
||||||
|
to set ``sudo sysctl vm.mmap_rnd_bits=28``
|
||||||
|
|
||||||
All of the above tools are available in the Clang/LLVM toolchain since 3.4.
|
All of the above tools are available in the Clang/LLVM toolchain since 3.4.
|
||||||
AddressSanitizer and ThreadSanitizer are available in recent versions of GCC,
|
AddressSanitizer and ThreadSanitizer are available in recent versions of GCC,
|
||||||
but are no longer actively maintained. MemorySanitizer is not available in GCC.
|
but are no longer actively maintained. MemorySanitizer is not available in GCC.
|
||||||
|
Loading…
Reference in New Issue
Block a user