Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ thiserror = { workspace = true }
forensic-vfs = { version = "0.3", optional = true }

[dev-dependencies]
forensic-testgate = "0.1"
tempfile = { workspace = true }

[lints]
Expand Down
24 changes: 7 additions & 17 deletions core/tests/corpus.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
#![allow(clippy::unwrap_used, clippy::expect_used)]
use forensic_testgate::gated_file;
use std::io::{Read, Seek, SeekFrom};
use std::path::PathBuf;
use vhd::VhdReader;

fn corpus_dir() -> Option<PathBuf> {
std::env::var("CORPUS_DIR").ok().map(PathBuf::from)
}

#[test]
fn corpus_dynamic_vhd_opens_and_has_nonzero_size() {
let Some(dir) = corpus_dir() else { return };
let path = dir.join("dynamic.vhd");
if !path.exists() {
let Some(path) = gated_file("CORPUS_DIR", "dynamic.vhd") else {
return;
}
};
let reader = VhdReader::open(&path).expect("open dynamic.vhd");
assert!(
reader.virtual_disk_size() > 0,
Expand All @@ -23,11 +17,9 @@ fn corpus_dynamic_vhd_opens_and_has_nonzero_size() {

#[test]
fn corpus_dynamic_vhd_read_is_stable() {
let Some(dir) = corpus_dir() else { return };
let path = dir.join("dynamic.vhd");
if !path.exists() {
let Some(path) = gated_file("CORPUS_DIR", "dynamic.vhd") else {
return;
}
};
let mut reader = VhdReader::open(&path).expect("open");
let mut buf = [0u8; 512];
reader.seek(SeekFrom::Start(0)).expect("seek");
Expand All @@ -40,11 +32,9 @@ fn corpus_dynamic_vhd_read_is_stable() {

#[test]
fn corpus_fixed_vhd_opens_and_has_nonzero_size() {
let Some(dir) = corpus_dir() else { return };
let path = dir.join("fixed.vhd");
if !path.exists() {
let Some(path) = gated_file("CORPUS_DIR", "fixed.vhd") else {
return;
}
};
let reader = VhdReader::open(&path).expect("open fixed.vhd");
assert!(
reader.virtual_disk_size() > 0,
Expand Down
6 changes: 6 additions & 0 deletions supply-chain/audits.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

[audits]

[[trusted.forensic-testgate]]
criteria = "safe-to-deploy"
user-id = 347968 # Albert Hui (h4x0r)
start = "2026-08-02"
end = "2027-08-05"

[[trusted.forensic-vfs]]
criteria = "safe-to-deploy"
user-id = 347968 # Albert Hui (h4x0r)
Expand Down
7 changes: 7 additions & 0 deletions supply-chain/imports.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

# cargo-vet imports lock

[[publisher.forensic-testgate]]
version = "0.1.0"
when = "2026-08-02"
user-id = 347968
user-login = "h4x0r"
user-name = "Albert Hui"

[[publisher.forensic-vfs]]
version = "0.3.0"
when = "2026-07-16"
Expand Down
Loading