mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
crash bug vector reserve
This commit is contained in:
@@ -722,7 +722,8 @@ SetHook::destroyNamespace(
|
|||||||
uint32_t stateCount =sleAccount->getFieldU32(sfHookStateCount);
|
uint32_t stateCount =sleAccount->getFieldU32(sfHookStateCount);
|
||||||
uint32_t oldStateCount = stateCount;
|
uint32_t oldStateCount = stateCount;
|
||||||
|
|
||||||
std::vector<uint256> toDelete {sleDir->getFieldV256(sfIndexes).size()};
|
std::vector<uint256> toDelete;
|
||||||
|
toDelete.reserve(sleDir->getFieldV256(sfIndexes).size());
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
// Make sure any directory node types that we find are the kind
|
// Make sure any directory node types that we find are the kind
|
||||||
|
|||||||
@@ -980,6 +980,10 @@ executeHookChain(
|
|||||||
uint32_t flags = (hookObj->isFieldPresent(sfFlags) ?
|
uint32_t flags = (hookObj->isFieldPresent(sfFlags) ?
|
||||||
hookObj->getFieldU32(sfFlags) : hookDef->getFieldU32(sfFlags));
|
hookObj->getFieldU32(sfFlags) : hookDef->getFieldU32(sfFlags));
|
||||||
|
|
||||||
|
JLOG(j_.trace())
|
||||||
|
<< "HookChainExecution: " << hookHash
|
||||||
|
<< " strong:" << strong << " flags&hsfCOLLECT: " << (flags & hsfCOLLECT);
|
||||||
|
|
||||||
// skip weakly executed hooks that lack a collect flag
|
// skip weakly executed hooks that lack a collect flag
|
||||||
if (!strong && !(flags & hsfCOLLECT))
|
if (!strong && !(flags & hsfCOLLECT))
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user