Skip to main content

checked_input

Function checked_input 

Source
pub fn checked_input(base: &Path, input: &Input) -> Result<Vec<u8>>
Expand description

Reads input relative to base. Fails if its path leaves base, also through a symbolic link, if the file exceeds MAX_INPUT_BYTES, or if its SHA-256 differs from input.sha256.