<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, May 11, 2016 at 6:18 AM Martin Liška <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello.<br>
<br>
I've been working on use-after-scope sanitizer enablement in the GCC compiler ([1]) and<br>
as I've read following submit request ([2]), the LLVM compiler started to utilize following option:<br>
-mllvm -asan-use-after-scope=1<br>
<br>
My initial attempt was to introduce a new option value for -fsanitize option (which would make both LLVM and GCC<br>
option compatible). Following the current behavior of the LLVM, I would have to add a new --param which would<br>
lead to a divergence. Is the suggested approach alterable for LLVM community?<br>
<br>
I would also suggest following default behavior:<br>
- If -fsanitize=address or -fsanitize=kernel-address is enabled, the use-after-scope sanitization should be enabled<br></blockquote><div><br></div><div>This is the plan, but after feature is ready to be enabled by default.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- Similarly, providing -fuse-after-scope should enable address sanitization (either use-space or kernel-space)<br></blockquote><br>We'd like to go with:<br>-fsanitize-address-use-after-scope<br>-fno-sanitize-address-use-after-scope<br>for consistency with -fsanitize-memory-use-after-dtor from MemorySanitizer<div><span style="line-height:1.5"> </span><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thank you for feedback,<br>
Martin<br>
<br>
[1] <a href="https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00468.html" rel="noreferrer" target="_blank" class="cremed">https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00468.html</a><br>
[2] <a href="http://reviews.llvm.org/D19347" rel="noreferrer" target="_blank" class="cremed">http://reviews.llvm.org/D19347</a><br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="cremed">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank" class="cremed">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>