damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit ffc50bb2c1dec6e84ba68dc516e0c3feb2fceefe
parent a562be009d38d415f6468e3838b0fa8d413465d5
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 25 Apr 2024 16:20:09 -0700

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 <jb55@jb55.com>

Diffstat:
Mnostrdb/src/nostrdb.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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;