Repository navigation
Function .end #2189
Answered
by
plafosse
BluePython339
asked this question in
API
Function .end
#2189
|
The class function has a |
Answered by
plafosse
Dec 30, 2020
Replies: 1 comment 1 reply
|
End as a concept doesn't really make sense in the way Binary Ninja defines a Function (a collection of connected BasicBlock objects). Consider the following code. b: In the above function there is no clear "end" of the function. We feel that if we created such an API it would be error prone as people have different ideas on how the function "end" should be calculated. |
1 reply
Answer selected by
BluePython339
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
End as a concept doesn't really make sense in the way Binary Ninja defines a Function (a collection of connected BasicBlock objects). Consider the following code.
sub_0:
call sub_2
ret
b:
ret
sub_2:
jmp b
In the above function there is no clear "end" of the function. We feel that if we created such an API it would be error prone as people have different ideas on how the function "end" should be calculated.