Vector35 / Vector35/binaryninja-api

mprotect missing from type libraries

Open
#5,364 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Type Libraries Effort: Low Impact: Low
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Description

A user reported that we are missing the type library info for the mprotect function:

Screenshot 2024-05-06 at 9 51 04 AM

This can be verified from the API as well:

>>> type_lib = bv.platform.get_type_libraries_by_name('libc_x86_64.so.6')[0]
>>> bv.import_library_object('mprotect', type_lib)

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 by reproducing the reported Python API calls with the libc_x86_64.so.6 type library and inspect how the mprotect entry is represented. Trace the type-library data or loading path that supplies libc symbols; done means importing mprotect through bv.import_library_object returns its type information correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
reverse-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.