Skip to main content

parse_pe_lenient

Function parse_pe_lenient 

Source
pub fn parse_pe_lenient<'a>(
    data: &'a [u8],
    label: &str,
) -> Result<(PE<'a>, Option<String>), String>
Expand description

Parse a PE with lenient fallback: if strict parsing fails (e.g. malformed certificate table), retry with parse_attribute_certificates: false. Returns (PE, Option<warning_message>) on success.