{"record":{"id":"497c3ad944de5160","repo":"oven-sh/bun","slug":"invalidpefile","errorCode":null,"errorMessage":"InvalidPEFile","messagePattern":"InvalidPEFile","errorType":"error_code","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/exe_format/pe.rs","lineNumber":17,"sourceCode":"// Windows PE sections use standard file alignment (typically 512 bytes)\n// No special 16KB alignment needed like macOS code signing\n\nuse core::mem::{offset_of, size_of};\nuse core::ptr;\nuse core::slice;\n\n// New error types for PE manipulation\n#[derive(thiserror::Error, strum::IntoStaticStr, Debug, Copy, Clone, Eq, PartialEq)]\npub enum Error {\n    #[error(\"OutOfBounds\")]\n    OutOfBounds,\n    #[error(\"BadAlignment\")]\n    BadAlignment,\n    #[error(\"Overflow\")]\n    Overflow,\n    #[error(\"InvalidPEFile\")]\n    InvalidPEFile,\n    #[error(\"InvalidDOSSignature\")]\n    InvalidDOSSignature,\n    #[error(\"InvalidPESignature\")]\n    InvalidPESignature,\n    #[error(\"UnsupportedPEFormat\")]\n    UnsupportedPEFormat,\n    #[error(\"InsufficientHeaderSpace\")]\n    InsufficientHeaderSpace,\n    #[error(\"TooManySections\")]\n    TooManySections,\n    #[error(\"SectionExists\")]\n    SectionExists,\n    #[error(\"InputIsSigned\")]\n    InputIsSigned,\n    #[error(\"InvalidSecurityDirectory\")]\n    InvalidSecurityDirectory,\n    #[error(\"SecurityDirInsideImage\")]","sourceCodeStart":1,"sourceCodeEnd":35,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/exe_format/pe.rs#L1-L35","documentation":"Error \"InvalidPEFile\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/exe_format/pe.rs:17 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}