• R/O
  • HTTP
  • SSH
  • HTTPS

drdeamon64: Commit

Dr.Deamon64 Git-Repository
(2014/03/01- Main-Repository: migrate from cvs)


Commit MetaInfo

Revision99757436ffbc5332370303d0a432bf4ccdcae1d8 (tree)
Zeit2020-01-31 08:12:45
AutorKoine Yuusuke(koinec) <koinec@user...>
CommiterKoine Yuusuke(koinec)

Log Message

  • Bug Temporary Fix

Ändern Zusammenfassung

Diff

--- a/libintel64asm/drd64_intel64_asm.c
+++ b/libintel64asm/drd64_intel64_asm.c
@@ -1219,13 +1219,18 @@ int
12191219 }
12201220
12211221 /* [RIP + disp] Support Code */
1222- if( ((Word)p_temp[0]->w_typeid) == OPTYPE_REG_RIP ) {
1223- p_analyze->modrm.modrm.mod = 0x00;
1224- p_analyze->modrm.modrm.rm = 0x05;
1222+ if( NULL != p_temp[0] ) {
1223+ if( ((Word)p_temp[0]->w_typeid) == OPTYPE_REG_RIP ) {
1224+ p_analyze->modrm.modrm.mod = 0x00;
1225+ p_analyze->modrm.modrm.rm = 0x05;
12251226
1226- p_analyze->v_disp.i_bytes = 4;
1227+ p_analyze->v_disp.i_bytes = 4;
1228+
1229+ goto goto_Drd64_Intel64_SetAnalyzePacket_OperandMemory_post;
1230+ }
12271231 }
1228- else {
1232+ // 2020/01/31 - Temporary fix. VVVV
1233+ //else {
12291234 /* Support [?SP + disp?] => SiB = 1Bytes */
12301235 if( NULL != p_base ) {
12311236 if( isRegType( p_base->w_typeid, OPTYPE_BASE_REG_GENERIC )) {
@@ -1297,8 +1302,9 @@ int
12971302 p_analyze->rex.rex.b = (w_temp & 0x0008) >> 3;
12981303 }
12991304 }
1300- }
1305+ //}
13011306
1307+goto_Drd64_Intel64_SetAnalyzePacket_OperandMemory_post:
13021308 /* Debug Print */
13031309 Drd64_Intel64_Debug_Asm_PrintMemoryOperand(
13041310 p_index, p_scale, p_base, p_disp);
Show on old repository browser