]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
readme: add instructions for enabling UBSAN
authorCaleb Sander <csander@purestorage.com>
Sat, 14 Oct 2023 05:00:48 +0000 (23:00 -0600)
committerDaniel Wagner <wagi@monom.org>
Thu, 2 Nov 2023 13:31:26 +0000 (14:31 +0100)
The undefined behavior sanitizer can catch a bunch of common C bugs.
Add instructions to the README for enabling it via meson.

Signed-off-by: Caleb Sander <csander@purestorage.com>
README.md

index f785d0c241cc47d1e62263f11ea3be0ac7437228..e73cadff54c2e75a848e18277e178cf71542784e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -178,3 +178,5 @@ Note that when using the sanitize feature, the library `libasan.so` must be avai
 ```
 meson setup .build -Db_sanitize=address && LD_PRELOAD=/lib64/libasan.so.6 ninja -C .build test
 ```
+
+It's also possible to enable the undefined behavior sanitizer with `-Db_sanitize=undefined`. To enable both, use `-Db_sanitize=address,undefined`.