Skip to content

Zstd builds fail with dfsan + hand written assembly #6513

@terrelln

Description

@terrelln

We recently added some hand written assembly for a hot loop in zstd. After that our builds started failing with undefined symbol HUF_decompress4X2_usingDTable_internal_bmi2_asm_loop.dfsan errors. HUF_decompress4X2_usingDTable_internal_bmi2_asm_loop is our ASM function. This seems related to data flow sanitizer

We have the ability to disable the assembly implementation with a macro. E.g. by detecting __has_feature(dataflow_sanitizer) and disabling it. Is there a better way handle it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions