Open 0x123456789 opened 6 years ago
Can you share a binary to reproduce?
Thanks for the quick response. Yes, here is exe file. It's a very simple program, just several asm instructions:
UPD: I use Windows
Sorry, It's my mistake, I did not fully understand what a basic block. It also can be like pyew return (for example on the image above (there IDA's CFG) or the image below).
But I notice another thing, the code above enumerates basic blocks, but it doesn't return block with sub's (see the screen from IDA). Why is this block missing?
UPD: I thought about blocks, and I realized that the case on the image in question is really probably a mistake because 'call' and 'mov' can't be in one basic block if 'call' is the first. ('call' should split this block) .
Hello, I try to enumerate all basic blocks using the following code:
It get's me basic blocks, but some of them are incorrect because the last instruction in them is not ret, call, jmp and etc. Here the example (here you can see that the last block instruction is mov):