Skip to content

Add ASan source from compiler-rt 8.0.0 - #8693

Merged
quantum5 merged 2 commits into
emscripten-core:incomingfrom
quantum5:asan-upstream
Jun 18, 2019
Merged

quantum5 merged 2 commits into
emscripten-core:incomingfrom
quantum5:asan-upstream

Conversation

@quantum5

Copy link
Copy Markdown
Member

No description provided.

@quantum5
quantum5 requested review from aheejin and tlively May 29, 2019 00:17

@sbc100 sbc100 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the readme are all the other files from upsteam? (e.g. the .extra and weak_symbols.txt?)

@quantum5

Copy link
Copy Markdown
Member Author

Yes all files are copied verbatim from upstream.

@hujiajie

Copy link
Copy Markdown
Contributor

What's the difference between ASan and SAFE_HEAP? Will the two modes co-exist in the future?

@kripken

kripken commented Jun 12, 2019

Copy link
Copy Markdown
Member

@hujiajie

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.

@hujiajie

Copy link
Copy Markdown
Contributor

@kripken Nice explanation! Thanks

@quantum5
quantum5 merged commit b89e08f into emscripten-core:incoming Jun 18, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants