[PATCH] D104155: Add documentation for -fsanitize-address-use-after-return.

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 11 19:26:20 PDT 2021


MaskRay added inline comments.


================
Comment at: clang/docs/AddressSanitizer.rst:17
 * Use-after-free
-* Use-after-return (runtime flag `ASAN_OPTIONS=detect_stack_use_after_return=1`)
+* Use-after-return (clang flag `-fsanitize-address-use-after-return=(always|runtime|never)` default: runtime)
+  * Add runtime flag `ASAN_OPTIONS=detect_stack_use_after_return=1` to enable when compiled with `-fsanitize-address-use-after-return=runtime`)
----------------
rst uses two backsticks instead of one.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104155/new/

https://reviews.llvm.org/D104155



More information about the cfe-commits mailing list