mkxp-z/binding-sandbox
刘皓 5a5fcd26c5
Delete copy constructor for stack_frame_guard and stack_frame
The copy constructors are causing problems when the `fiber.stack` vector
gets reallocated when its capacity is full, since when vectors are
reallocated, the elements are moved (or copied if there's no usable move
constructor) to the reallocated memory and then the original elements
are destroyed.

This premature calling of destructors leads to double-free and
use-after-free errors.

I fixed it by deleting the copy constructors and explicitly defining
move constructors.
2025-04-16 21:39:04 -04:00
..
audio-binding.h Implement audio fading in libretro builds 2025-04-07 14:33:50 -04:00
binding-base.cpp Delete copy constructor for stack_frame_guard and stack_frame 2025-04-16 21:39:04 -04:00
binding-base.h Delete copy constructor for stack_frame_guard and stack_frame 2025-04-16 21:39:04 -04:00
binding-sandbox.h Delete copy constructor for stack_frame_guard and stack_frame 2025-04-16 21:39:04 -04:00
binding-util.cpp Start writing class/method stubs for binding-sandbox 2025-01-21 12:56:17 -05:00
binding-util.h Start implementing VX/VX Ace bindings in libretro builds 2025-04-13 17:30:50 -04:00
bitmap-binding.h Start implementing VX/VX Ace bindings in libretro builds 2025-04-13 17:30:50 -04:00
core.h Implement audio fading in libretro builds 2025-04-07 14:33:50 -04:00
etc-binding.h Complete more of the font bindings for libretro builds 2025-04-04 12:20:33 -04:00
font-binding.h Start implementing VX/VX Ace bindings in libretro builds 2025-04-13 17:30:50 -04:00
graphics-binding.h Implement changing the frame rate in libretro builds 2025-04-10 16:51:25 -04:00
input-binding.h Add Graphics.frame_count bindings in libretro builds 2025-03-20 21:29:22 -04:00
meson.build Implement config loading in libretro builds 2025-04-11 23:12:05 -04:00
module_rpg.cpp Reconcile the standalone and libretro build systems 2025-04-09 23:52:12 -04:00
plane-binding.h Remove unnecessary coroutines from libretro color= binding implementations 2025-04-02 13:22:31 -04:00
sandbox.cpp Rename mkxp-threads to mkxp-polyfill 2025-04-02 13:06:17 -04:00
sandbox.h Delete copy constructor for stack_frame_guard and stack_frame 2025-04-16 21:39:04 -04:00
sprite-binding.h Remove unnecessary coroutines from libretro color= binding implementations 2025-04-02 13:22:31 -04:00
table-binding.h Complete more of the font bindings for libretro builds 2025-04-04 12:20:33 -04:00
tilemap-binding.h Remove unnecessary coroutines from libretro color= binding implementations 2025-04-02 13:22:31 -04:00
tilemapvx-binding.h Start implementing VX/VX Ace bindings in libretro builds 2025-04-13 17:30:50 -04:00
types.h Refactor the non-autogenerated parts of sandbox-bindgen into separate files 2025-02-05 01:11:23 -05:00
viewport-binding.h Start implementing VX/VX Ace bindings in libretro builds 2025-04-13 17:30:50 -04:00
wasi.cpp Remove dependency on libzip in libretro builds 2025-03-31 13:26:54 -04:00
wasi.h Remove dependency on libzip in libretro builds 2025-03-31 13:26:54 -04:00
wasm-rt.cpp Implement loading from encrypted game archives in libretro builds 2025-03-30 23:37:19 -04:00
wasm-rt.h Rename wasm-rt symbols to reduce probability of symbol conflicts with libretro frontend 2025-03-02 13:49:19 -05:00
window-binding.h Start implementing VX/VX Ace bindings in libretro builds 2025-04-13 17:30:50 -04:00
windowvx-binding.h Start implementing VX/VX Ace bindings in libretro builds 2025-04-13 17:30:50 -04:00