Skip to content

What if I only want to analyze a single function? #2552

Answered by psifertex
psifertex asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Use open with options
  2. Find "Max Function Size", set it to 0
  3. Navigate to the address/function in question and either use p to create the function if it doesn't exist and then click the header on triggering analysis, or click the header to allow analysis.

To do the same thing from the API:

# Note you will need to add BN to your path and a commercial/headless license to do this outside of the UI

from binaryninja import BinaryViewType, FunctionAnalysisSkipOverride
bv = BinaryViewType.get_view_of_file_with_options('/bin/ls', options={'analysis.limits.maxFunctionSize': 0})

# Create, or get the existing one depending on whether the function is already created. 
# Will depend on whether it's …

Replies: 1 comment

Comment options

psifertex
Jul 14, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by psifertex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant