dewolf icon indicating copy to clipboard operation
dewolf copied to clipboard

[GUI] Make addresses in code clickable

Open mari-mari opened this issue 3 years ago • 0 comments

Proposal

Is it possible to make addresses in code clickable, i.e. if we have address in the decompiled code that points to some location within the binary, we could click it and it navigates to the corresponding location in the main view of the Binary Ninja?

E.g. extractme.zip

int main(int argc, char ** argv, char ** envp) {
    int var_0;
    char var_1;
    void * i;
    void * var_3;
    var_0, var_1 = mmap(0, 71, 7, 34, -1, 0, 0);
    if (var_0 == 0) {
        var_0 = 1;
    }
    else {
        for (i = 0U; i < 71; i++) {
            var_3 = i + 0x804c020;
            *var_3 = *var_3 ^ 19;
        }
        memcpy(var_0, 0x804c020, 71);
        var_0();
        var_0 = 0;
    }
    return var_0;
}

So when we click on 0x804c020, we land on the corresponding address in the data section of the binary (marked gray): Screenshot_2022-02-02_12-05-48

Approach

Implement if possible :D

mari-mari avatar Feb 02 '22 11:02 mari-mari