You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short overview
Semantics of BufferFinalizer are unspecified. We should either get rid of it or fix their behavior.
Detailed description Buffer finalizers are called when a Buffer gets destroyed and it's used by libnut to deal with underlying memory.
However, since the underlying memory is allocated via malloc and the BufferFinalizer calls delete on it, we might run into trouble since this is unspecified behaviour.
We could get rid of these finalizers by using Buffer::Copy and free allocated memory ourselfs, or we just update the finalizer to use free
The text was updated successfully, but these errors were encountered:
* (#47) Deleted src/buffer_finalizer.h
* (#47) Switched to using Buffer::Copy
* Fix for screen highlight window minimized intead close
* Create LICENSE.md
* Add Helper Methods for calculating the required absolute position on the screen
* Refactor moveMouse to use SendInput for absolute position movements on windows
* Indentation
* Add Coord constant
* Squash x and y coord methods
Make Absolute coord calculation return MMPoint
* Call coord calculator with MMPoint
* Correct Types and Return values
* Import for getMainDisplaySize
* Bugfix for lost co-ordinate precision
* (nut-tree/nut.js#249) Enable DPI awareness when fetching screen content to always capture the full screen content even with scaling applied
* (nut-tree/nut.js#249) Refactor scale calculation to work correctly with custom regions
* (nut-tree/nut.js#306) Specify supported os and cpu in package.json to enable Apple Silicon
* Remove scan code block
* Release/v2.1.3 (#88)
* Update changelog for v2.1.3
* Release v2.1.3
Co-authored-by: Gyula Madarasz <[email protected]>
Co-authored-by: Reiss Cashmore <[email protected]>
Short overview
Semantics of
BufferFinalizer
are unspecified. We should either get rid of it or fix their behavior.Detailed description
Buffer finalizers are called when a
Buffer
gets destroyed and it's used by libnut to deal with underlying memory.However, since the underlying memory is allocated via
malloc
and theBufferFinalizer
callsdelete
on it, we might run into trouble since this is unspecified behaviour.We could get rid of these finalizers by using Buffer::Copy and free allocated memory ourselfs, or we just update the finalizer to use
free
The text was updated successfully, but these errors were encountered: