Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowlist for SanitizerCoverage #124158

Open
LeoneChen opened this issue Apr 19, 2024 · 0 comments
Open

Allowlist for SanitizerCoverage #124158

LeoneChen opened this issue Apr 19, 2024 · 0 comments
Labels
needs-triage This issue may need triage. Remove it if it has been sufficiently triaged.

Comments

@LeoneChen
Copy link

clang provide option fsanitize-coverage-allowlist to pass allow list to SanitizerCoverage, it passes option in code like below

static void addSanitizers(const Triple &TargetTriple,
                          const CodeGenOptions &CodeGenOpts,
                          const LangOptions &LangOpts, PassBuilder &PB) {
    MPM.addPass(SanitizerCoveragePass(
        SancovOpts, CodeGenOpts.SanitizeCoverageAllowlistFiles,
        CodeGenOpts.SanitizeCoverageIgnorelistFiles));
    ...
}

However, rust seems only can use -Cllvm-args to pass option registered by cl::opt etc., thus has no chance to pass allowlist

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage This issue may need triage. Remove it if it has been sufficiently triaged.
Projects
None yet
Development

No branches or pull requests

2 participants