Finding constants in disassembly often doesn't find any
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- cpp
- Domaine
- reverse-engineering
Piste de recherche
Start by tracing BinaryView::FindAllConstant and how it matches disassembly tokens against their values; compare that behavior with InstructionTextToken sizes for the listed architectures. The issue does not name source files or tests, so locate the implementation and relevant coverage before choosing a fix. Done means numeric constants visible in disassembly can be found for the reproduction architectures.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Version and Platform (required):
- Binary Ninja Version: 6.1.11009-dev Ultimate, d194d34
- OS: macOS 27.0.1
- CPU Architecture: arm64
Bug Description:
BinaryView::FindAllConstant can only find constants whose tokens report have a non-zero size. Many architectures don't populate the size for immediates within GetInstructionText.
Steps To Reproduce:
- Open an aarch64, armv7, thumb2, or MIPS binary.
- Switch to disassembly.
- Use the Find dialog with "Constant (Disassembly)" mode to search for a numeric constant that is visible within a function body.
Expected Behavior:
The constant that is clearly visible in the disassembly will be found.
Additional Information:
I'm not clear if the bug here is that BinaryView::FindAllConstant requires a token to have a non-zero size in order to match its value, or if the bug is that architectures aren't populating the size field for these tokens.
I can't find any documentation that indicates it is required for architectures to populate it, and the shape of the InstructionTextToken API in C++ has no way to require it for specific token types. That makes me lean towards BinaryView::FindAllConstant being at fault.
- Langage dominant
- C++
- Étoiles
- 1.3k
- Forks
- 304
- Merge moyen
- 2 j 20 h
- PR mergées (30 j)
- 10
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Vector35/binaryninja-api
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
Vector35/binaryninja-api#8715 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Vector35/binaryninja-api#8714 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Vector35/binaryninja-api#8713 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 1/5 1-3 heures Accessibilité débutants 78/100
Vector35/binaryninja-api#8689 ·
Les mainteneurs répondent en général sous 2 jours
-
Component: Python API
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Vector35/binaryninja-api#8649 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de Vector35/binaryninja-api
Issues similaires
-
Bug Core VIF
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
ESPresense/ESPresense#2680 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 Moins d'une heure Accessibilité débutants 75/100
stew675/llama-cpp-rdna-boosts#348 ·
Les mainteneurs répondent en général sous 1 jour
-
Documentation: Add comprehensive newcomer onboarding guide, project structure, and local usage to READMEPeut-être pris @Ash-Blanc l’a pris aujourd’hui. Ouvertearea/other status/bot-triaged status/need-triage
Difficulté 2/5 Une demi-journée Accessibilité débutants 85/100
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour