[][src]Enum pes::error::Error

pub enum Error {
    Bounds,
    ZeroFill,
    Overflow,
    Unmapped,
}

Variants

Bounds

越界错误 比如: rva 没有出现在 headers 和 sections 中

ZeroFill

零填充区错误 这个发生在 pe 文件中 VirtualSize > SizeOfRawData 时, 在 ImageBuffer 状态下, 系统拉伸 pe 文件, VirtualSize 多出来的部分被 0 填充. 我们去引用这部分的地址时就触发这个错误. 可以看下 Pe trait 中的 rva_to_foa() 方法

Overflow

溢出错误

Unmapped

地址无法映射错误 一般出现在 foa 转 rva 时, 当文件地址指向 VirtualSize 和 SizeOfRawData 之间时, 这块地方是和内存映像没有映射关系的.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.