MediumLevelILInstruction.get_reg_value appears broken

Open
#1,415 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Reproduce the two calls shown for current_mlil[9] and current_function at address 0x984, then trace how each computes the stack-frame offset for the 'sp' register. Compare the results and add a focused regression check once the expected behavior is confirmed; done means both APIs return consistent values for this instruction.

Written by the indexing model from the issue text.

Description

Component: Core Impact: Low
>>> current_mlil[9].get_reg_value('sp')
<stack frame offset 0x0>
>>> current_function.get_reg_value_at(here, 'sp')
<stack frame offset -0xd0>
>>> hex(here)
'0x984'
>>> hex(current_mlil[9].address)
'0x984'
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.