cutter icon indicating copy to clipboard operation
cutter copied to clipboard

Invalid instructions near the end of the disassembly tab

Open ret2libc opened this issue 2 years ago • 0 comments

Environment information

  • Operating System:
  • Cutter version:
  • Obtained from:
    • [ ] Built from source
    • [x] Downloaded release from Cutter website or GitHub: ./Cutter-git-2022-06-12-84b33d50bdd666825eada79a5fe0a2039bc2b1c6-x64.Linux.AppImage
    • [ ] Distribution repository
  • File format: ELF x86_64

Describe the bug

Not enough bytes are disassembled in disassembly mode, causing "invalid" instructions to be decoded near the end of the linear disassembly.

To Reproduce

Steps to reproduce the behavior:

  1. Open a binary
  2. Go to the "Disassembly" mode.
  3. Scroll until near the end of the disassembly window you don't start seeing "invalid" instructions. When scrolling back a bit, the invalid instructions will be correctly decoded, but when going back to the previous point they will still be displayed as "invalid"

Expected behavior

Cutter disassembles a bit more bytes than what it does now, so that it can correctly disassemble even longer instructions near the end of the "page".

Screenshots

image image

Additional context

ret2libc avatar Jun 15 '22 06:06 ret2libc