Repository navigation
Add ASan source from compiler-rt 8.0.0 - #8693
Conversation
sbc100
left a comment
There was a problem hiding this comment.
Aside from the readme are all the other files from upsteam? (e.g. the .extra and weak_symbols.txt?)
|
Yes all files are copied verbatim from upstream. |
|
What's the difference between ASan and SAFE_HEAP? Will the two modes co-exist in the future? |
SAFE_HEAP tests for pointers being non-null and smaller than the total size of memory, and also alignment - things that are more of a problem on the web than elsewhere. ASan can more generally find incorrect memory usage like use-after-free bugs, and it may be able to find all the things SAFE_HEAP can, but I'm not sure. In particular, SAFE_HEAP instruments the wasm/asm.js, while ASan works much earlier in the pipeline (before the LLVM optimizer, IIANM), which may cause differences. So I expect both will be useful. |
|
@kripken Nice explanation! Thanks |
No description provided.