Menu

#2 Bug. Extends a 32-bit address into a 64-bit address.

v1.0 (example)
open
nobody
address (1)
5
2013-12-01
2013-12-01
sc07kvm
No

Incorrect address use in PyDbgEng.bp_set()
Correction:
def bp_set(self, address, preferred_id = DbgEng.DEBUG_ANY_ID, restore = True, handler = None):
...
if type(address) is str:
address = self.resolve_symbol(address)
if self.idebug_control.IsPointer64Bit()!=S_OK:
address=c_ulonglong(c_longlong(c_int(address).value).value).value
self.dbg_eng_log("PyDbgEng.bp_set: setting bp at address %xL" % address)
...

In dbgeng.h:

//----------------------------------------------------------------------------
//
// Macros.
//
//----------------------------------------------------------------------------

// Extends a 32-bit address into a 64-bit address.

define DEBUG_EXTEND64(Addr) ((ULONG64)(LONG64)(LONG)(Addr))

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.