Corpus directory is dumped into and re-imported from itself every iteration

Đang mở
#403 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
security, testing-qa

Hướng nghiên cứu

Read src/fuzzer/mod.rs around lines 413–419 and 529–530, focusing on how SyncFromDiskStage, DumpToDiskStage, and the disk-backed corpora use their directories. Trace which files the sync stage loads and check the LibAFL callback options. Done when the redundant copies and metadata files are no longer re-imported; the issue notes this was confirmed by code reading but not reproduced under SIMICS.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Where

Problem
SyncFromDiskStage::with_from_file(corpus_directory) and DumpToDiskStage(corpus_directory, solutions_directory) target the same directories that CachedOnDiskCorpus/OnDiskCorpus already persist to. Each fuzz_one, the dump stage writes an extra id_{i}_{name} copy of every corpus entry and solution, and the sync stage loads every recent file as a raw BytesInput, with no dotfile filter: including .{name}.metadata JSON, the id_* copies and *.testcase files.

Impact
Wasted executions on duplicates, and JSON metadata executed as fuzz input (which can itself enter the corpus). Likely contributes to near-duplicate testcases.

Suggested fix
Drop DumpToDiskStage (redundant), and either sync from a separate directory or use SyncFromDiskStage::new with a callback that skips dotfiles.

Related
#101, #60

Status
Confirmed by reading the code at 79972db. Found by reading the code; not reproduced under SIMICS.

Ngôn ngữ chính
Rust
Star
335
Fork
26
Merge trung bình
1 ngày 50 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của intel/tsffs

Tất cả issue của intel/tsffs

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.