sodium-friends / sodium-native

Low level bindings for libsodium
MIT License
300 stars 64 forks source link

Electron v 21.2.3 allocation of memory error #168

Closed tmotagam closed 1 year ago

tmotagam commented 1 year ago

Hello, The latest electron 21.2.3 when sandbox mode is enabled the electron crashes with the following error

[2356:1116/183844.292:ERROR:node_bindings.cc(146)] Fatal error in V8: v8_ArrayBuffer_NewBackingStore When the V8 Sandbox is enabled, ArrayBuffer backing stores must be allocated inside the sandbox address space. Please use an appropriate ArrayBuffer::Allocator to allocate these buffers.

when using sodium malloc to allocate safe memory buffer in nodejs

thanks

Wolvan commented 1 year ago

This blog entry gives insight on what is going on here.

tmotagam commented 1 year ago

@Wolvan, Yes I know about this article but I want to allocate memory inside the ArrayBuffer of Backing Store which is not happening with the malloc of sodium native how to do that

mafintosh commented 1 year ago

Sounds like an electron issue, otherwise reopen