Skip to content

Race condition in fuzz tests #432

@mmmds

Description

@mmmds

Fuzz tests clamav_dbload_fuzzer.cpp and clamav_scanfile_fuzzer.cpp create a fixed-name input file. If the tests are running in parallel mode, many threads are accessing the same file. Filenames should be unique per process to make parallel fuzzing effective.

fuzzdb = fopen(kClamAVState.tmp_db_name, "w");

fuzzfile = fopen(kClamAVState.tmp_file_name, "w");

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions