mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-01-11 08:34:01 -05:00
2a21f5abf9
For zero-size `BackingStore`s, it seems like `BackingStore::data` always returns a null pointer. The `Deref` impl for `BackingStore` called `std::slice::from_raw_parts` on that pointer, even though it is UB to call that function on a null pointer even for empty slices. This change fixes that by obtaining a valid pointer from `NonNull::dangling()` if the original is null. Reported in https://github.com/denoland/rusty_v8/issues/711#issuecomment-950637136. |
||
---|---|---|
.. | ||
compile_fail | ||
slots.rs | ||
test_api.rs | ||
test_api_entropy_source.rs | ||
test_api_flags.rs | ||
test_platform_atomics_pump_message_loop.rs | ||
test_single_threaded_default_platform.rs | ||
test_ui.rs |