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

Ошибка при добавлении флагов. #77

Closed
CourteousSleet opened this issue May 22, 2023 · 1 comment
Closed

Ошибка при добавлении флагов. #77

CourteousSleet opened this issue May 22, 2023 · 1 comment

Comments

@CourteousSleet
Copy link

При выборе флагов -fprofile-instr-generate -fcoverage-mapping для afl-clang-fast, цели не компилируются, хотя данные флаги им поддерживаются.

 ./futag-llvm/AFLplusplus/usr/local/bin/afl-clang-fast --help | grep profile
-fprofile-instr-generate

./futag-llvm/AFLplusplus/usr/local/bin/afl-clang-fast --help | grep mapping  
                          The compilation directory to embed in the coverage mapping.
  -fcoverage-mapping      Generate coverage mapping to enable code coverage analysis
                          remap file source paths in coverage mapping
                          The compilation directory to embed in the debug info and coverage mapping.
                          Specify the mapping of module name to precompiled module file, or load a module file if name is omitted.

P.S. При компиляции цели libFuzzer эти же флаги не вызывают ошибок.

@thientc
Copy link
Collaborator

thientc commented May 24, 2023

Для генерации покрытия можете задавать coverage=True в функции compile_targets. Если вы задаете отдельно, видимо конфликт будет.

    generator = Generator(
        FUTAG_PATH, 
        lib_path,
        target_type=AFLPLUSPLUS
    )
    generator.gen_targets(anonymous=True, max_wrappers=1000)
    generator.compile_targets(workers=16, keep_failed=True, keep_original=True,coverage=True)

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

No branches or pull requests

2 participants