Incorrect casting in pseudo-C

Open
#7,301 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start from the pseudo-C expression shown in the issue and trace where its cast is generated in the decompiler output path. Reproduce the expression, identify why (uint32_t*) is emitted before strrchr, and verify that the resulting pseudo-C no longer contains the incorrect redundant cast.

Written by the indexing model from the issue text.

Description

Effort: Medium Impact: Low LanguageRep: Pseudo-C

bronze scene sanitizes ambitiously

In char* r0_1 = strrchr(*(uint32_t*)argv, 0x2f);, the cast to (uint32_t*) is wrong and redundant

Image
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.