Fuzzing Crash: VortexError in variant_file

未關閉
#12,416 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
54/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust
領域
databases

研究方向

Start with encodings/parquet-variant/src/arrow.rs at line 144 and the variant_file fuzz target at line 184, then reproduce using the crash artifact and commands in the issue. Trace how unshred_storage handles fields present in both typed_value and value. Done means the crash is fixed and the valid Variant chunk round-trip succeeds for this input.

由索引模型根據 Issue 內容生成。

描述

bug fuzzer

Target crashed at encodings/parquet-variant/src/arrow.rs:144:unshred_storage:

valid Variant chunks should round-trip:
  Invalid argument error: Field 'a' appears in both typed_value and value
Stack trace
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /rustc/8eb778d04094d3af4b26580cab327e0413eb1e02/library/std/src/panicking.rs:676:5
   1: core::panicking::panic_fmt
             at /rustc/8eb778d04094d3af4b26580cab327e0413eb1e02/library/core/src/panicking.rs:80:14
   2: panic_display<vortex_error::VortexError>
             at /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:259:5
   3: result_expect_failed<vortex_error::VortexError>
             at ./vortex-error/src/lib.rs:553:9
   4: vortex_expect<(), vortex_error::VortexError>
             at ./vortex-error/src/lib.rs:258:25
   5: __libfuzzer_sys_run
             at ./fuzz/fuzz_targets/variant_file.rs:184:21
   6: rust_fuzzer_test_input
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libfuzzer-sys-0.4.13/src/lib.rs:363:60
   7: {closure#0}
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libfuzzer-sys-0.4.13/src/lib.rs:62:9
   8: do_call<libfuzzer_sys::test_input_wrap::{closure_env#0}, i32>
             at /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:573:43
   9: __rust_try
  10: catch_unwind<i32, libfuzzer_sys::test_input_wrap::{closure_env#0}>
             at /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:541:19
  11: catch_unwind<libfuzzer_sys::test_input_wrap::{closure_env#0}, i32>
             at /home/runner/.rustup/toolchains/nightly-2026-11-13-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:359:14
  12: test_input_wrap
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libfuzzer-sys-0.4.13/src/lib.rs:60:22
  13: _ZN6fuzzer6Fuzzer15ExecuteCallbackEPKhm
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libfuzzer-sys-0.4.13/libfuzzer/FuzzerLoop.cpp:619:15
  14: _ZN6fuzzer10RunOneTestEPNS_6FuzzerEPKcm
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libfuzzer-sys-0.4.13/libfuzzer/FuzzerDriver.cpp:335:21
  15: _ZN6fuzzer12FuzzerDriverEPiPPPcPFiPKhmE
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libfuzzer-sys-0.4.13/libfuzzer/FuzzerDriver.cpp:871:19
  16: main
             at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libfuzzer-sys-0.4.13/libfuzzer/FuzzerMain.cpp:20:30
  17: __libc_start_call_main
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:59:16
  18: __libc_start_main_impl
             at ./csu/../csu/libc-start.c:360:3
  19: _start

To reproduce, download the crash artifact to ~/Downloads and run these
commands from the repository root:

unzip ~/Downloads/variant_file-crash-artifacts.zip -d fuzz-artifacts
RUST_BACKTRACE=1 cargo +nightly fuzz run -D --sanitizer=none \
  variant_file \
  fuzz-artifacts/variant_file/crash-2c3944c949f4b0fc6930a3d89941b2059544bf30 \
  -- -rss_limit_mb=0

Auto-created by fuzzing workflow

主要語言
Rust
星號
3.2k
分支
239
平均合併
1 天 4 小時
30 天內合併 PR
684

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

vortex-data/vortex 的其他 Issue

查看 vortex-data/vortex 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。