diff --git a/x64_dbg_bridge/bridgelist.h b/x64_dbg_bridge/bridgelist.h index 95a29854..02a82389 100644 --- a/x64_dbg_bridge/bridgelist.h +++ b/x64_dbg_bridge/bridgelist.h @@ -88,7 +88,7 @@ public: */ inline Type & operator[](size_t index) const { - if(index >= count()) //make sure the out-of-bounds access is caught as soon as possible. + if(index >= size_t(count())) //make sure the out-of-bounds access is caught as soon as possible. __debugbreak(); return data()[index]; } diff --git a/x64_dbg_dbg/_exports.cpp b/x64_dbg_dbg/_exports.cpp index 1ed2f9ba..a617ef97 100644 --- a/x64_dbg_dbg/_exports.cpp +++ b/x64_dbg_dbg/_exports.cpp @@ -965,7 +965,7 @@ extern "C" DLL_EXPORT uint _dbg_sendmessage(DBGMSG type, void* param1, void* par { STRING_TYPE strtype; char string[MAX_STRING_SIZE]; - if(disasmgetstringat((uint)param1, &strtype, string, string, MAX_STRING_SIZE)) + if(disasmgetstringat((uint)param1, &strtype, string, string, MAX_STRING_SIZE-3)) { if(strtype == str_ascii) sprintf((char*)param2, "\"%s\"", string);