ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

[Bug] Disassembly doesn't start from base offset

Open luc0x61 opened this issue 2 years ago • 3 comments

Operating System

Windows

What's the issue you encountered?

The disassembly doesn't start from the chosen base offset. I opened a small Windows/PE .exe and I can't move the start of disassembly as below

Image 2022-12-21 173308

Note that however, with a 'Selection' the disassembly is correct

How can the issue be reproduced?

  1. Open an .exe
  2. Select View, Disassembler
  3. Enter a 'Position' different from zero
  4. The disassembled data keep starting from 0x0

ImHex Version

1.25.0

ImHex Build Type

  • [ ] Nightly or built from sources

Installation type

Portable Windows package, just extracted

Additional context?

No response

luc0x61 avatar Dec 21 '22 16:12 luc0x61

Hey The naming of these fields might be a bit misleading. Base address referes to the address all addresses in the instructions will be relative to. This is for example useful if you know that a certain part of your binary will be loaded at a specific address into memory so the addresses displayed will be correct. Instead what you want to do is select the range of bytes you want to disassemble and then check the Selection radio box. Currently it just starts to disassemble all instructions starting from address 0x00 of your binary. I'll see if I can make this a bit more obvious in the UI.

WerWolv avatar Dec 21 '22 19:12 WerWolv

Oh, I see... Sorry for the wrong report 😊

luc0x61 avatar Dec 23 '22 07:12 luc0x61

This issue is marked stale as it has been open for 11 months without activity. Please try the latest ImHex version. (Avaiable here: https://imhex.download/ for release and https://imhex.download/#nightly for development version) If the issue persists on the latest version, please make a comment on this issue again

Without response, this issue will be closed in one month.

github-actions[bot] avatar Aug 03 '24 16:08 github-actions[bot]