Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Crash in libcapstone!ARM_getInstruction #2025

Closed
1 task
justanotheranonymoususer opened this issue Dec 24, 2024 · 0 comments
Closed
1 task

[Bug] Crash in libcapstone!ARM_getInstruction #2025

justanotheranonymoususer opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@justanotheranonymoususer

Operating System

Windows

What's the issue you encountered?

Maybe an upstream bug, but ImHex crashed, so I'm posting here.

Selected some bytes and chose to disassemble them. Just clicked on OK, perhaps I used the wrong arch. But it shouldn't crash.

0:014> .ecxr
rax=0000000000000011 rbx=000000d2b54ff020 rcx=00000229a7505950
rdx=000002299dea6040 rsi=000000d2b54fee0e rdi=0000000000000019
rip=00007ffc897aff5d rsp=000000d2b54fed70 rbp=000000d2b54ff538
 r8=0000000000000030  r9=0000000000000000 r10=00000229a7505950
r11=000002299dea6040 r12=000000d2b54ff548 r13=000000d2b54ff540
r14=000000d2b54ff600 r15=00007ffc89e9c110
iopl=0         nv up ei pl nz na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010206
libcapstone!ARM_getInstruction+0x3d:
00007ffc`897aff5d 48c70000000000  mov     qword ptr [rax],0 ds:00000000`00000011=????????????????
0:014> k
  *** Stack trace for last set context - .thread/.cxr resets it
 # Child-SP          RetAddr               Call Site
00 000000d2`b54fed70 00007ffc`89792554     libcapstone!ARM_getInstruction+0x3d
01 000000d2`b54fedb0 00007ffc`b0c8fd85     libcapstone!cs_disasm_iter+0xd4
02 000000d2`b54ff440 00007ffc`b1435f65     disassembler!operator()<hex::Task>+0x1c5 [D:/a/ImHex/ImHex/plugins/disassembler/source/content/views/view_disassembler.cpp @ 78] 
03 000000d2`b54ff980 00007ffc`b9fe33bf     libimhex!_M_run+0x205 [D:/a/_temp/msys64/mingw64/include/c++/14.2.0/bits/new_allocator.h @ 151] 
04 000000d2`b54ffa60 00007ffc`fba14e0b     libstdc___6!atomic_flag_test_and_set_explicit+0x2df
05 000000d2`b54ffaa0 00007ffd`2e56f0ad     libwinpthread_1!pthread_create_wrapper+0x9b
06 000000d2`b54ffae0 00007ffd`2e56f17c     msvcrt!_callthreadstartex+0x1d
07 000000d2`b54ffb10 00007ffd`2eebe8d7     msvcrt!_threadstartex+0x7c
08 000000d2`b54ffb40 00007ffd`2ff9fbcc     kernel32!BaseThreadInitThunk+0x17
09 000000d2`b54ffb70 00000000`00000000     ntdll!RtlUserThreadStart+0x2c

How can the issue be reproduced?

Select some random bytes, right click, choose "Disassemble".

ImHex Version

1.36.0

ImHex Build Type

  • Nightly or built from sources

Installation type

MSI

Additional context?

No response

@justanotheranonymoususer justanotheranonymoususer added the bug Something isn't working label Dec 24, 2024
WerWolv added a commit that referenced this issue Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant