mkxp-z/binding-sandbox
刘皓 cae4166765
Use rb_obj_alloc instead of rb_class_new_instance in binding-sandbox
Somehow, using `rb_class_new_instance` causes use-after-free errors in
the subsequent call to `set_private_data`.

Well, `rb_obj_alloc` is what's used in the normal MRI bindings. I just
replaced the `rb_obj_alloc` calls with `rb_class_new_instance`
at some point in binding-sandbox. Guess that wasn't a good idea.
2025-02-16 23:30:09 -05:00
..
audio-binding.h Replace WABT's WebAssembly runtime with a custom implementation 2025-02-11 20:40:55 -05:00
binding-base.cpp Don't build relocatable objects in libretro console builds 2025-02-13 22:24:08 -05:00
binding-base.h Replace WABT's WebAssembly runtime with a custom implementation 2025-02-11 20:40:55 -05:00
binding-sandbox.h Replace WABT's WebAssembly runtime with a custom implementation 2025-02-11 20:40:55 -05:00
binding-util.cpp Start writing class/method stubs for binding-sandbox 2025-01-21 12:56:17 -05:00
binding-util.h Replace WABT's WebAssembly runtime with a custom implementation 2025-02-11 20:40:55 -05:00
bitmap-binding.h Use rb_obj_alloc instead of rb_class_new_instance in binding-sandbox 2025-02-16 23:30:09 -05:00
core.h Replace WABT's WebAssembly runtime with a custom implementation 2025-02-11 20:40:55 -05:00
etc-binding.h Add default initializer to Color, Tone and Rect in libretro builds 2025-02-11 01:16:22 -05:00
font-binding.h Use rb_obj_alloc instead of rb_class_new_instance in binding-sandbox 2025-02-16 23:30:09 -05:00
graphics-binding.h Implement plane bindings for binding-sandbox 2025-02-06 19:44:34 -05:00
input-binding.h Start implementing input for libretro builds 2025-02-04 23:47:54 -05:00
plane-binding.h Use rb_obj_alloc instead of rb_class_new_instance in binding-sandbox 2025-02-16 23:30:09 -05:00
sandbox.cpp Replace WABT's WebAssembly runtime with a custom implementation 2025-02-11 20:40:55 -05:00
sandbox.h Refactor the non-autogenerated parts of sandbox-bindgen into separate files 2025-02-05 01:11:23 -05:00
sprite-binding.h Use rb_obj_alloc instead of rb_class_new_instance in binding-sandbox 2025-02-16 23:30:09 -05:00
table-binding.h Stub out more of the sprite bindings for binding-sandbox 2025-02-05 22:30:04 -05:00
tilemap-binding.h Use rb_obj_alloc instead of rb_class_new_instance in binding-sandbox 2025-02-16 23:30:09 -05: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 Use rb_obj_alloc instead of rb_class_new_instance in binding-sandbox 2025-02-16 23:30:09 -05:00
wasi.cpp Remove dependency on ghc::filesystem in libretro builds 2025-02-01 13:03:13 -05:00
wasi.h Replace WABT's WebAssembly runtime with a custom implementation 2025-02-11 20:40:55 -05:00
wasm-rt.cpp Fix memory corruption in wasm-rt found by AddressSanitizer 2025-02-16 17:52:41 -05:00
wasm-rt.h Mark wasm_rt_trap as noreturn 2025-02-16 01:26:16 -05:00
window-binding.h Use rb_obj_alloc instead of rb_class_new_instance in binding-sandbox 2025-02-16 23:30:09 -05:00