Skip to content

Reading can panic on invalid operands #9

@ExpHP

Description

@ExpHP
fn main() {
    println!("{:?}", x86asm::InstructionReader::new(
        &[0x6c, 0x90][..],
        x86asm::Mode::Protected,
    ).read());
}
thread 'main' panicked at 'Invalid operand definition.', C:\Users\diago\.cargo\registry\src\github.com-1ecc6299db9ec823\x86asm-0.1.0\src\decoding.rs:322:26

It's not entirely clear to me why this panics, rather than returning Err.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions