mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Fixed a null pointer dereference (#2709)
This commit is contained in:
parent
771fa6102c
commit
2d778c01d7
@ -2939,6 +2939,9 @@ QList<RelocDescription> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user