Skip to content

Commit

Permalink
Fix random segfault caused by unaligned fields on macos-m1 ##crash
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Jan 9, 2025
1 parent 565094c commit a591dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/anal/xrefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ CWISS_DECLARE_FLAT_HASHMAP_DEFAULT(AdjacencyList, ut64, Edges*);

// NOTE: this is heavy in memory usage, but needed due to performance reasons for large amounts of xrefs..
typedef struct r_ref_manager_t {
AdjacencyList refs; // forward refs
AdjacencyList xrefs; // backward refs
R_ALIGNED(16) AdjacencyList refs; // forward refs
R_ALIGNED(16) AdjacencyList xrefs; // backward refs
} RefManager;

static inline int compare_ref(const RAnalRef *a, const RAnalRef *b) {
Expand Down

0 comments on commit a591dac

Please sign in to comment.