From ffc50bb2c1dec6e84ba68dc516e0c3feb2fceefe Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 25 Apr 2024 16:20:09 -0700 Subject: [PATCH] nostrdb: fix realloc corruption can't figure out why this is happening, but let's disable it for now while we test. we shouldn't hit this code path anyways once we switch over to local notes in damus ios Signed-off-by: William Casarin --- nostrdb/src/nostrdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index c94137b1..2ea7e2a6 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -5841,9 +5841,9 @@ static struct ndb_blocks *ndb_note_to_blocks(struct ndb_note *note) return NULL; } - blocks = realloc(blocks, ndb_blocks_total_size(blocks)); - if (blocks == NULL) - return NULL; + //blocks = realloc(blocks, ndb_blocks_total_size(blocks)); + //if (blocks == NULL) + //return NULL; blocks->flags |= NDB_BLOCK_FLAG_OWNED;