mmomtchev / swig

This is SWIG JavaScript Evolution, a fork of the SWIG project with modern JavaScript/TypeScript support including WASM and async
http://www.swig.org
Other
7 stars 0 forks source link

Hidden leaks in the new `Buffer`/`ArrayBuffer` typemaps #23

Closed mmomtchev closed 4 months ago

mmomtchev commented 4 months ago

void **arraybuffer_data, size_t *arraybuffer_len and void **buffer_data, size_t *buffer_len do not free the buffers.

The leak is masked by the node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) which triggers the node::Init leak suppression pattern.