Forum Discussion
Immersive lab Ghidra, Ep2.
In This lab I have answered all of the questions except question 4 -
"Using the function graph on the main function, what is the starting address of the last basic block?"
It is not clear which block the "last" one is. I have entered the starting address of all basic blocks but none are correct. Is there some secret to this question that I haven't discovered yet?
4 Replies
- netcat
Silver III
While I couldn't solve Q3 only by guessing, not sure how to count the vertices: Q4 is simple and straight forward, if you have identified the main function.
- autom8on
Silver I
How did you answer Question 3?
When I did it, it generated a picture with a number of blocks of code in it (Q3 effectively being "how many blocks?"). Q4 is just asking, "What's the starting address of the final ('last') block of code on that diagram"?
- Keeska
Bronze I
Yes. In the graph there are 2 "legs" going down - sort of an inverted 'Y'. I entered the starting address of the bottom block on each leg. Neither is correct.
- autom8on
Silver I
I'm not convinced you're looking in the right place/at the right thing - what I'm seeing looks nothing like an inverted Y... I don't want to post the entire diagram, but the outline of the function graph I'm seeing looks like this (the box at the bottom is what you're looking for):
Are you sure you're looking at the correct function (there's a pointer in the info pane to where the main user defined function is located)?