diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index 19cfaab3..6894ec15 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -2939,6 +2939,9 @@ QList CutterCore::getAllRelocs() if (core && core->bin && core->bin->cur && core->bin->cur->o) { auto relocs = rz_bin_object_patch_relocs(core->bin->cur, core->bin->cur->o); + if (!relocs) { + return ret; + } for (size_t i = 0; i < relocs->relocs_count; i++) { RzBinReloc *reloc = relocs->relocs[i]; RelocDescription desc;