diff --git a/rizin b/rizin index 71679b080..444000416 160000 --- a/rizin +++ b/rizin @@ -1 +1 @@ -Subproject commit 71679b0800c657ad03fa374e989b2cd87433bd29 +Subproject commit 444000416cc929d4ce67116a46eaeee1d8a5b4fd diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index b70b15855..bd9983c33 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -3805,19 +3805,22 @@ QList CutterCore::getAllResources() if (!bf) { return {}; } - const RzList *resources = rz_bin_object_get_resources(bf->o); + const RzPVector *resources = rz_bin_object_get_resources(bf->o); + if (!resources) { + return {}; + } + QList resourcesDescriptions; - RzBinResource *r; - RzListIter *it; - CutterRzListForeach (resources, it, RzBinResource, r) { + for (const auto &resource : CutterPVector(resources)) { ResourcesDescription description; - description.name = r->name; - description.vaddr = r->vaddr; - description.index = r->index; - description.type = r->type; - description.size = r->size; - description.lang = r->language; + description.name = resource->name; + description.vaddr = resource->vaddr; + description.index = resource->index; + description.type = resource->type; + description.size = resource->size; + description.lang = resource->language; + resourcesDescriptions << description; }