reimorster / disasm

Disassembler written in C by Oleh Yuschuk (Olly, the OllyDbg creator), I fixed the makefile to run with BCC55 free commandline tools available from Embarcadero.
http://www.ollydbg.de/
GNU General Public License v2.0
19 stars 11 forks source link

Debug #1

Open Private0xCC opened 4 years ago

Private0xCC commented 4 years ago

In the Visula Studio environment, when the code is compiled with Debug, the Disasm function gets the wrong result Disasm("\x81\x05\xE0\x5A\x47\x00\x01\x00\x00\x00",10,0x400000,&da,DISASM_CODE);

da.result is “???”

Private0xCC commented 4 years ago

This is caused by the lack of initialization of local variables in the DecodeIM function, char name[TEXTLEN], comment[TEXTLEN]; This leads to the following judgment error. if (addcomment && comment[0] != '\0') strcpy(da->comment, comment); Debug mode sets all uninitialized memory to 0xCC