2

I'm developing a python script for IDA Pro and I seem to have a problem with idaapi.FlowChart because it retrieves another basic block that isn't present in the graph view of the GUI of IDA.

enter image description here

As you can see in the function at 0x10b4 there is only one basic block composed by a JMP instruction, but the size of the flowchart is 2, where in the second basic block there is the first instruction present at the memory location pointed by the JMP instruction of the first basic block.

Do you know how I can deal with this problem? Thank you in advance.

1 Answer 1

1

I have fixed it by using flags=idaapi.FC_NOEXT when calling FlowChart.

The flag idaapi.FC_NOEXT tells to not compute external blocks. Using this prevents jumps leaving the function from appearing in the flow chart. Unless specified, the targets of those outgoing jumps will be present in the flow chart under the form of one-instruction blocks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.