You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
IDA decompiler crashes when running the debug version of unflattener.
To Reproduce
Steps to reproduce the behavior:
cmake --build . --config Debug -j 4 --clean-first
copy the hrtng.dll to IDA's plugins directory.
Expected behavior
Use IDA to open a binary that contains a flattened function. Hit F5 and then the decompilation fails. IDA pops a warning window saying "IDA has encountered a problem. It is recommended to save your work and restart IDA. A mini dump file has been created in ..."
Desktop
OS: windows 10
IDA 8.4 and IDA 9.0
Additional context
The call stack when IDA crashes:
hrtng64.dll!block_chains_t::get_chain(const chain_t & ch) Line 10870
hrtng64.dll!block_chains_t::get_chain(const voff_t & k, int width) Line 3403
hrtng64.dll!JcMapper::FindComparesInUseChain(int defBlk, mop_t * cmpVar) Line 433
hrtng64.dll!CFFlattenInfo::GetAssignedAndComparisonVariables(mba_t * mba) Line 808
hrtng64.dll!CFUnflattener::run(mba_t * mba) Line 1618
hrtng64.dll!unflattening(mba_t * mba) Line 1943
The text was updated successfully, but these errors were encountered:
Honestly speaking, I don't known where is the bug and how to fix it. The decompiler crashes somewhere deep inside hexx64.dll on accessing memory by the bad pointer (0x10). It is looks like somewhere NULL pointer check is missing.
I've tried to check Debug build of hrtng with some older IDA:
IDA 7.7 and 8.1 - work well
IDA 8.3 and later - crash
I cant help here, sorry. Please try to ask help on Hex-Rays or use older IDA version for debugging.
Describe the bug
IDA decompiler crashes when running the debug version of unflattener.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Use IDA to open a binary that contains a flattened function. Hit F5 and then the decompilation fails. IDA pops a warning window saying "IDA has encountered a problem. It is recommended to save your work and restart IDA. A mini dump file has been created in ..."
Desktop
Additional context
The call stack when IDA crashes:
hrtng64.dll!block_chains_t::get_chain(const chain_t & ch) Line 10870
hrtng64.dll!block_chains_t::get_chain(const voff_t & k, int width) Line 3403
hrtng64.dll!JcMapper::FindComparesInUseChain(int defBlk, mop_t * cmpVar) Line 433
hrtng64.dll!CFFlattenInfo::GetAssignedAndComparisonVariables(mba_t * mba) Line 808
hrtng64.dll!CFUnflattener::run(mba_t * mba) Line 1618
hrtng64.dll!unflattening(mba_t * mba) Line 1943
The text was updated successfully, but these errors were encountered: