keyhog-core 0.5.73

keyhog-core: shared data model and detector specifications for the KeyHog secret scanner
Documentation
1
2
3
4
5
6
7
//! Migrated from `src/safe_bin.rs` inline tests.
use keyhog_core::resolve_safe_bin;
#[test]
fn refuses_relative_path() {
    assert!(resolve_safe_bin("./malicious").is_none());
    assert!(resolve_safe_bin("../../../bin/sh").is_none());
}