0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-11 08:34:01 -05:00
denoland-rusty-v8/tests
Andreu Botella 2a21f5abf9
fix: Make derefing a zero-size BackingStore no longer UB (#809)
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.
2021-10-25 22:40:14 +02:00
..
compile_fail chore: upgrade Rust to 1.55.0 (#770) 2021-09-10 12:32:29 +02:00
slots.rs feat: Implement Isolate::remove_slot (#769) 2021-09-09 00:41:50 +02:00
test_api.rs fix: Make derefing a zero-size BackingStore no longer UB (#809) 2021-10-25 22:40:14 +02:00
test_api_entropy_source.rs Add support for Platform::pump_message_loop and Platform::run_idle_tasks (#706) 2021-07-01 16:05:07 +02:00
test_api_flags.rs Add support for Platform::pump_message_loop and Platform::run_idle_tasks (#706) 2021-07-01 16:05:07 +02:00
test_platform_atomics_pump_message_loop.rs Add support for Platform::pump_message_loop and Platform::run_idle_tasks (#706) 2021-07-01 16:05:07 +02:00
test_single_threaded_default_platform.rs Add support for Platform::pump_message_loop and Platform::run_idle_tasks (#706) 2021-07-01 16:05:07 +02:00
test_ui.rs Rewrite the scope system from scratch (#406) 2020-06-26 01:42:00 +02:00