Skip to main content

parse_pe

Function parse_pe 

Source
pub fn parse_pe(bytes: &[u8]) -> Result<PeFile, PeError>
Expand description

Parse a PE binary from raw bytes.

Returns PeError::NotPe for non-PE inputs (empty, wrong magic, truncated header). Returns PeError::Structure for PEs that pass the magic check but are malformed.