[gnutls-devel] GnuTLS | fuzz: Update README.md for clang-9 [skip ci] (!1218)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Sun Mar 22 10:39:34 CET 2020
Dmitry Baryshkov started a new discussion on fuzz/README.md: https://gitlab.com/gnutls/gnutls/-/merge_requests/1218#note_309082183
> Use the following commands on top dir:
> ```
> export CC=clang
> -export CFLAGS="-O1 -g -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=undefined,integer,nullability -fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp"
> +export CXX=clang++
> +export CFLAGS="-O1 -g -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=undefined,integer,nullability,bool,alignment,null,enum,address,leak,nonnull-attribute -fno-sanitize-recover=all -fsanitize-recover=unsigned-integer-overflow -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link"
I have a question about using `-DDFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION`. We already define this when using `--enable-fuzzer-target` (defined in `config.h`), however all scripts check for the flag in `Makefile`s rather than `config.h`. Should we point scripts to config.h file?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1218#note_309082183
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200322/4ddc7de4/attachment.html>
More information about the Gnutls-devel
mailing list