Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect judgment of program architecture #14

Open
DUO-1337 opened this issue Nov 22, 2021 · 0 comments
Open

Incorrect judgment of program architecture #14

DUO-1337 opened this issue Nov 22, 2021 · 0 comments

Comments

@DUO-1337
Copy link

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant