Skip to content

Wrong variables name substitution? #17637

@alex-curiou

Description

@alex-curiou

Work environment

Questions Answers
OS/arch/bits (mandatory) Ubuntu 20.04.1
File format of the file you reverse (mandatory) ELF
Architecture/bits of the file (mandatory) arm64-v8a
r2 -v full output, not truncated (mandatory) radare2 4.6.0-git 25649 @ linux-x86-64 git.4.4.0-678-g5ccf9fd48
commit: 5ccf9fd build: 2020-09-13__02:36:27

Expected behavior

No variable substitution should happen at all in the third line. This behaviour, btw, is also in line with IDA.

; var int64_t var_0h_2 @ sp+0x20
sub sp, sp, 0x30
stp x29, x30, [sp, 0x20]
add x29, sp, 0x20

Actual behavior

; var int64_t var_0h_2 @ sp+0x20
sub sp, sp, 0x30
stp x29, x30, [sp, 0x20]
add x29, var_0h_2x20

Steps to reproduce the behavior

$ r2 -AA libnative-lib.so
> s 0x00015780
> pi 3

Binary to test

Provided in #17637 (comment)

Additional Logs, screenshots, source-code, configuration dump, ...

Now

Metadata

Metadata

Assignees

Labels

ARMARM architecture support issueshigh-priorityHigh priority bugs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions