Yunus Ayar

Results 10 comments of Yunus Ayar

This is the output with the `-fsanitize=address` option: ```txt Value: hi ================================================================= ==1359==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x613000000190 in thread T0 #0 0x7f2be50dc520 in operator...

Closing this issue since it's most likely a bug in GCC. There are several bug reports on GCC's bugzilla like [this](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103909). Nonetheless thanks for the help. Cheers

Thanks @kubo for the patch! Can this please be merged into the main repository @pantor ?

I have implemented something similar for `node-sqlite3` [here](https://github.com/terrakuh/node-sqlite3/blob/02eddca4edb2459e880673326e24e5f09ed0532b/src/database.cc#L677-L705). Maybe this could be of inspiration?

Sorry, I forgot to mention my versions: - Electron 22.1.0 - better-sqlite3 8.2.0 - OS Fedora Linux 37

Maybe another solution would be to use `Buffer::NewOrCopy()` as described [here](https://github.com/nodejs/node-addon-api/blob/main/doc/buffer.md) and [here](https://github.com/nodejs/node-addon-api/blob/main/doc/external_buffer.md). I was thinking of something like this (untested): ```cpp unsigned char* data = sqlite3_serialize(db->db_handle, *attached_name, &length, SQLITE_SERIALIZE_NOCOPY);...

For anyone who's interested: You can apply the [dump_and_load.patch.txt](https://github.com/TryGhost/node-sqlite3/files/10801828/dump_and_load.patch.txt) patch: ```sh git am < dump_and_load.patch.txt ``` Basic usage: ```js db1.dump("main", (err, data) => { db2.load("main", data, (err) => {}) })...

@isaacHagoel Hi there. I'm having the same issues here. But in my setup I also have nested containers. This simple [REPL](https://svelte.dev/playground/6369cfea3c80489da247df352e258428?version=5.39.2) can't reproduce the duplicate IDs but when playing around...

I think the duplication of items is due to Sveltes reactivity system and the nested structure of my data (similar to the REPL). I guess that removing the items from...