cutter icon indicating copy to clipboard operation
cutter copied to clipboard

Command 'iAj' causes crash and command 'iA' incorrect for arm arch

Open altaic opened this issue 2 years ago • 4 comments

Environment information

  • Operating System: macOS 12.4
  • Cutter version: 2.0.5
  • Obtained from:
    • [ ] Built from source
    • [x] Downloaded release from Cutter website or GitHub
    • [ ] Distribution repository
  • File format: arm binary (GD32F307 microcontroller)

Describe the bug

After loading an arm binary (setting analysis disabled, the architecture='arm', bits=16, endianness='little', kernel='none') and opening the console, entering the command iAj causes cutter to crash. Furthermore, iA outputs:

offset     size   arch      machine 
------------------------------------
0x00000000 164836 (null)_64  

I imagine the arch should be 'arm_64' or some such, not '(null)_64'.

altaic avatar Jun 23 '22 01:06 altaic

@altaic are you able to download/test https://github.com/rizinorg/cutter/suites/6895909402/artifacts/267486351 ?

ret2libc avatar Jun 23 '22 06:06 ret2libc

I cannot reproduce on either dev or stable (using the ELF files)

XVilka avatar Jun 23 '22 14:06 XVilka

Can be reproduced with a raw binary blob, rather than e.g. an elf

thestr4ng3r avatar Jun 23 '22 14:06 thestr4ng3r

@thestr4ng3r Yes, I was using a raw binary (as I noted for a GD32F307 microcontroller).

altaic avatar Jun 24 '22 04:06 altaic