Skip to main content

load_bytecode_input

Function load_bytecode_input 

Source
pub fn load_bytecode_input(input: &str) -> Result<Vec<u8>, BytecodeError>
Expand description

Decode a hex string into raw bytecode bytes.

Earlier revisions accepted an @path prefix that would read the file as raw bytecode. That alternate entry point conflated “hex-decoded input” with “file IO” and provided a path-traversal sink for any caller passing less-trusted input (env vars, CI parameters, scripted wrappers). File IO is now the CLI’s responsibility — runtime callers pass bytes directly via decode or hex via this function.