Skip to content

Incorrect judgment of program architecture #14

@DUO-1337

Description

@DUO-1337
ida_idp.info.is_32bit()
Out[14]: True

ida_idp.info.is_64bit()
Out[15]: True

For 64-bit programs, ida's two judgments both return true, so Yagi will judge the 64-bit program as 32-bit, which does not meet expectations。

auto mode = yagi::Compiler::Mode::M24;
if (inf_is_64bit())
{
    mode = yagi::Compiler::Mode::M64;
}
if (inf_is_16bit())
{
    mode = yagi::Compiler::Mode::M16;
}
if (inf_is_32bit_exactly())
{
    mode = yagi::Compiler::Mode::M32;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions