Skip to content

Add sanitizer_common and ubsan from compiler-rt 8.0.0 - #8654

Merged
quantum5 merged 2 commits into
emscripten-core:incomingfrom
quantum5:ubsan-full-upstream
May 23, 2019
Merged

quantum5 merged 2 commits into
emscripten-core:incomingfrom
quantum5:ubsan-full-upstream

Conversation

@quantum5

Copy link
Copy Markdown
Member

As requested in #8651, the upstream code is here as a separate PR, and also sourced from a production release of LLVM. This should make it easier to review.

@tlively tlively left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So this is just copying compiler-rt/lib/{sanitizer_common,ubsan} wholesale with no omissions and no additions? At some point I expect we will want to make this a git submodule or similar, but I guess it makes sense to wait and see how many nonstandard modification we will need before we decide whether to upstream or fork. If we fork, it wouldn't be so important to make this a submodule.

@quantum5

Copy link
Copy Markdown
Member Author

There are a bunch of stuff that are omitted because they aren't used, like scripts we don't use that fails flake8, unit tests that we can't run, and the symbolizer which needs to be built with LLVM source, but otherwise, it's all the files from compiler-rt/lib/{sanitizer_common,ubsan}.

I can add these if you want.

@tlively

tlively commented May 23, 2019

Copy link
Copy Markdown
Member

No, I think it makes sense to leave that stuff out 👍 @aheejin any comments?

@quantum5
quantum5 requested review from aheejin and kripken May 23, 2019 20:48
@aheejin

aheejin commented May 23, 2019 •

Copy link
Copy Markdown
Member
  • Does this ubsan directory replace ubsan_minimal you previously added?
  • Could you add a brief description on what you omitted from the vanilla source? Your answer to @tlively 's comment answers somewhat answers it, but having it on the PR/commit description would be good too.

@quantum5

Copy link
Copy Markdown
Member Author

This does not replace the minimal ubsan. Description of what is omitted will be added in the next update to this PR.

@quantum5
quantum5 merged commit c0129f0 into emscripten-core:incoming May 23, 2019
@quantum5
quantum5 deleted the ubsan-full-upstream branch May 23, 2019 23:15
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.

3 participants