Fix a crash in _dbg_addrinfoget
Thanks to @JustasMasiulis for reporting!
This commit is contained in:
parent
5ac31bfe96
commit
d74095770c
|
@ -354,7 +354,8 @@ extern "C" DLL_EXPORT bool _dbg_addrinfoget(duint addr, SEGMENTREG segment, BRID
|
||||||
Zydis cp;
|
Zydis cp;
|
||||||
auto getregs = !bOnlyCipAutoComments || addr == lastContext.cip;
|
auto getregs = !bOnlyCipAutoComments || addr == lastContext.cip;
|
||||||
disasmget(cp, addr, &instr, getregs);
|
disasmget(cp, addr, &instr, getregs);
|
||||||
if(!cp.IsNop())
|
// Some nop variants have 'operands' that should be ignored
|
||||||
|
if(cp.Success() && !cp.IsNop())
|
||||||
{
|
{
|
||||||
//Ignore register values when not on CIP and OnlyCipAutoComments is enabled: https://github.com/x64dbg/x64dbg/issues/1383
|
//Ignore register values when not on CIP and OnlyCipAutoComments is enabled: https://github.com/x64dbg/x64dbg/issues/1383
|
||||||
if(!getregs)
|
if(!getregs)
|
||||||
|
|
|
@ -399,7 +399,7 @@ bool Zydis::IsBranchType(std::underlying_type_t<BranchType> bt) const
|
||||||
ZydisMnemonic Zydis::GetId() const
|
ZydisMnemonic Zydis::GetId() const
|
||||||
{
|
{
|
||||||
if(!Success())
|
if(!Success())
|
||||||
DebugBreak();
|
return ZYDIS_MNEMONIC_INVALID;
|
||||||
return mInstr.mnemonic;
|
return mInstr.mnemonic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue