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

Crash during '-I' option usage for grep.exe file #5

Closed
andriyankov opened this issue Sep 9, 2022 · 1 comment
Closed

Crash during '-I' option usage for grep.exe file #5

andriyankov opened this issue Sep 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@andriyankov
Copy link
Owner

При попытке посмотреть детали импорта для файла grep.exe(MD5: dc66dc168f81e438c0e7d86e638284ff) с помощью опции --imports-detailed происходит падение приложения

@andriyankov andriyankov added the bug Something isn't working label Sep 9, 2022
@andriyankov andriyankov changed the title Crash during '-I' option usage for grep.exe' file Crash during '-I' option usage for grep.exe file Sep 9, 2022
@andriyankov
Copy link
Owner Author

andriyankov commented Sep 11, 2022

Проблема заключена в том, что в этом месте: PE/src/parse/Import.cpp:32 происходит чтение больше чем размер файла.

Когда идет обработка 0x5 по счету ImportDescriptr-а, то его файловая позиция в 32-й строчке равна 0x3D89 при размере размер 0x914 , что составляет 0x18077 и это больше чем размер файла, который равен 96768 байтам, т.е. 0x17A00.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant