Vector35 / Vector35/binaryninja-api

Wrong cast

Open
#4,800 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Version and Platform (required):

  • Binary Ninja Version: 3.6.4706-dev Personal
  • OS: Windows
  • OS Version: Windows 11
  • CPU Architecture: x64

Bug Description:
Wrong cast

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open "challenge" file
  2. Goto 0xdbf
  3. Change windows to Pseudo C

Expected Behavior:
read_long() should be casted to (int32_t) instead of (int64_t)

Screenshots:
image

challenge.zip

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 opening the provided challenge.zip in Binary Ninja 3.6.4706-dev on Windows, navigating to 0xdbf, and viewing the function in Pseudo C. Compare the generated cast for read_long() with the expected int32_t result; done means the output uses int32_t rather than int64_t for this case.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.