avast / avast/retdec

[capstone2llvmir]: Missing type for register number: 245

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

Nobody has claimed this yet.

Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I am trying to lift an andoird kernel binary but I am facing the following error:

Missing type for register number: 51204
storeRegister() unhandled reg.
Missing type for register number: 51204
storeRegister() unhandled reg.
[capstone2llvmir]: Missing type for register number: 245

Is there any direct way to fix this? Also how can I locate the missing registers and add the definition to the tool?

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.

Research direction

Start with the capstone2llvmir register-handling path, especially storeRegister(), and reproduce the error using the Android kernel binary described in the report. Trace how register numbers are mapped to types and identify where the missing definitions should be added; done means the binary lifts without the reported unhandled-register and missing-type messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, reverse-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.