Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BorrowSanitizer/bsan
/ functions
Functions
2,093 in github.com/BorrowSanitizer/bsan
⨍
Functions
2,093
◇
Types & classes
426
↓ 1 callers
Function
data_moved_async
This test: - Compares addresses of non-Copy data before and after moving it - Writes to the pointer after it has moved across the await point This is
tests/miri-tests/pass/move-data-across-await-point.rs:13
↓ 1 callers
Method
dealloc
(&self, ptr: *mut u8, _layout: Layout)
bsan-rt/src/global.rs:249
↓ 1 callers
Function
dealloc_while_running
(_n: Newtype<'_>, dealloc: impl FnOnce())
tests/miri-tests/fail/aliasing/both_borrows/newtype_retagging.rs:10
↓ 1 callers
Function
dealloc_while_running
(_n: Newtype<'_>, dealloc: impl FnOnce())
tests/miri-tests/fail/aliasing/both_borrows/newtype_pair_retagging.rs:9
↓ 1 callers
Function
debug
()
tests/miri-tests/pass/arrays.rs:60
↓ 1 callers
Method
debug_info
(&self)
bsan-script/src/env.rs:63
↓ 1 callers
Method
debug_print_diff
(&self, ctx: &GlobalCtx)
bsan-rt/src/borrow_tracker.rs:417
↓ 1 callers
Method
debug_print_tree
(&self, ctx: &GlobalCtx, show_unnamed: bool)
bsan-rt/src/borrow_tracker.rs:423
↓ 1 callers
Method
debug_take_snapshot
(&self, ctx: &GlobalCtx)
bsan-rt/src/borrow_tracker.rs:413
↓ 1 callers
Method
decrement
Decrements the reference count, returning `true` if the count reached zero.
bsan-rt/src/borrow_tracker.rs:359
↓ 1 callers
Method
decrement
Pop the last level of indentation.
bsan-rt/src/tree_borrows/diagnostics.rs:618
↓ 1 callers
Method
decrement_used
(&self)
bsan-rt/src/memory/heap.rs:183
↓ 1 callers
Function
deinit_global_ctx
()
bsan-rt/src/global.rs:293
↓ 1 callers
Function
demo_box_advanced_unique
(mut our: Box<i32>)
tests/miri-tests/fail/aliasing/both_borrows/box_exclusive_violation1.rs:5
↓ 1 callers
Function
demo_mut_advanced_unique
(our: &mut i32)
tests/miri-tests/fail/aliasing/both_borrows/mut_exclusive_violation1.rs:5
↓ 1 callers
Function
deref
(left: *const u8, right: *const u8)
tests/miri-tests/should-fail/baseline/provenance/provenance_transmute.rs:11
↓ 1 callers
Function
deref_invalid
()
tests/miri-tests/pass/ptr_raw.rs:35
↓ 1 callers
Method
deref_mut
(&mut self)
bsan-rt/src/global.rs:51
↓ 1 callers
Function
deref_partially_dangling
()
tests/miri-tests/pass/ptr_raw.rs:47
↓ 1 callers
Function
deref_too_big_slice
()
tests/miri-tests/pass/ptr_raw.rs:54
↓ 1 callers
Function
diamond
()
tests/miri-tests/pass/dyn-upcast.rs:107
↓ 1 callers
Function
direct_mut_to_const_raw
Make sure that coercing &mut T to *const T produces a writeable pointer.
tests/miri-tests/pass/tree_borrows/tree-borrows.rs:97
↓ 1 callers
Function
discriminant_overflow
()
tests/miri-tests/pass/enums.rs:24
↓ 1 callers
Function
disjoint_mutable_subborrows
()
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:142
↓ 1 callers
Method
display_tree_error
(&mut self, mut error: TreeBorrowsUb, symbol: Symbol)
bsan-rt/src/errors.rs:56
↓ 1 callers
Method
do_bad
(&mut self)
tests/miri-tests/pass/tree_borrows/sb_fails.rs:25
↓ 1 callers
Method
do_bad
(&mut self)
tests/miri-tests/pass/stacked_borrows/fnentry_invalidation.rs:16
↓ 1 callers
Method
do_bad
(&mut self)
tests/miri-tests/fail/aliasing/tree_borrows/fnentry_invalidation.rs:25
↓ 1 callers
Function
do_panic_counter
(do_panic: impl FnOnce(usize) -> !)
tests/miri-tests/should-pass/performance/panic/catch_panic.rs:24
↓ 1 callers
Function
do_stuff
()
tests/miri-tests/pass/future-self-referential.rs:33
↓ 1 callers
Method
do_the_thing
(&mut self, _s: i32)
tests/miri-tests/pass/both_borrows/interior_mutability.rs:193
↓ 1 callers
Method
doc
(&self, env: &mut BsanEnv, args: &[String])
bsan-script/src/commands.rs:498
↓ 1 callers
Function
download_crate
Downloads <crate>@<version> from crates.io into dest_dir, extracts it, and returns the path to the extracted contents.
bsan-script/etc/bench.py:125
↓ 1 callers
Function
download_file
( sh: &Shell, url: &Path, destination: &Path, help_on_error: &str, )
bsan-script/src/utils.rs:225
↓ 1 callers
Function
drain
()
tests/miri-tests/pass/binary-heap.rs:20
↓ 1 callers
Function
drop_after_sharing
Make sure that we can handle the situation where a location is frozen when being dropped.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:114
↓ 1 callers
Function
drop_principal
()
tests/miri-tests/pass/dyn-upcast.rs:436
↓ 1 callers
Function
dtors_in_dtors_in_dtors
()
tests/miri-tests/pass/tls/tls_macro_drop.rs:223
↓ 1 callers
Function
dyn_coroutine
( val: Pin<&mut dyn Coroutine<String, Yield = (&'static str, String, Loc), Return = ()>>, )
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:226
↓ 1 callers
Function
dyn_invoke_fn_mut
( val: &mut dyn FnMut(&'static str, bool) -> (&'static str, bool, Loc), )
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:153
↓ 1 callers
Function
dyn_invoke_fn_once
( val: Box<dyn FnOnce(&'static str, bool) -> (&'static str, bool, Loc)>, )
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:160
↓ 1 callers
Function
each_alignment_reversed
()
tests/miri-tests/pass/memchr.rs:63
↓ 1 callers
Function
echo
()
tests/miri-tests/should-pass/c-variadic.rs:13
↓ 1 callers
Method
end_protector_x
Remove the protector of `x`, including the implicit read on function exit.
bsan-rt/src/tree_borrows/tree/tests.rs:467
↓ 1 callers
Method
end_protector_y
Remove the protector of `y`, including the implicit read on function exit.
bsan-rt/src/tree_borrows/tree/tests.rs:473
↓ 1 callers
Function
ensure_allocs_can_be_adjacent
()
tests/miri-tests/pass/adjacent-allocs.rs:4
↓ 1 callers
Function
ensure_llvm_cmake
( sh: &Shell, config: &BsanConfig, toolchain_dir: &Path, root_dir: &Path, )
bsan-script/src/setup.rs:149
↓ 1 callers
Function
ensure_miri_wrapper
Ensure that the wrapper script for capturing Miri invocations is initialized.
bsan-script/etc/bench.py:218
↓ 1 callers
Function
ensure_toolchain
( sh: &Shell, host: &VersionMeta, config: &mut BsanConfig, toolchain_dir: &Path, mut skip_
bsan-script/src/setup.rs:35
↓ 1 callers
Function
eq
()
tests/miri-tests/pass/arrays.rs:50
↓ 1 callers
Method
eq
2023-05: We found that using `equivalent` rather than `identical` in the equality testing of the `RangeMap` is neutral for most benchmarks, while bein
bsan-rt/src/tree_borrows/data_structures/unimap.rs:92
↓ 1 callers
Method
equivalent
Equality up to trailing `None`s of two maps, i.e. do they represent the same mapping ?
bsan-rt/src/tree_borrows/data_structures/unimap.rs:78
↓ 1 callers
Function
example
(data: &Data)
tests/miri-tests/pass/align_offset_symbolic.rs:79
↓ 1 callers
Function
exec_stdout
(mut cmd: Command)
cargo-bsan/src/util.rs:84
↓ 1 callers
Function
exec_with_pipe
(mut cmd: Command)
cargo-bsan/src/util.rs:95
↓ 1 callers
Function
explicit
()
tests/miri-tests/pass/regions-lifetime-nonfree-late-bound.rs:17
↓ 1 callers
Method
expose_tag
(&mut self, global_ctx: &GlobalCtx)
bsan-rt/src/borrow_tracker.rs:393
↓ 1 callers
Method
exposed_provenance_mut
(&'a self)
bsan-rt/src/global.rs:139
↓ 1 callers
Function
extract_curl_version
(out: &[u8])
bsan-script/src/utils.rs:208
↓ 1 callers
Method
extract_relevant
Reconstruct the history relevant to `error_offset` by filtering only events whose range contains the offset we are interested in.
bsan-rt/src/tree_borrows/diagnostics.rs:284
↓ 1 callers
Function
f
(t: T)
tests/miri-tests/pass/closure-drop.rs:10
↓ 1 callers
Function
f
(s: &'s str)
tests/miri-tests/pass/issues/issue-27901.rs:8
↓ 1 callers
Function
f0
(_f: dyn FnOnce())
tests/miri-tests/pass/unsized.rs:8
↓ 1 callers
Function
f1
(_s: str)
tests/miri-tests/pass/unsized.rs:9
↓ 1 callers
Function
f2
(_x: i32, _y: [i32])
tests/miri-tests/pass/unsized.rs:10
↓ 1 callers
Function
f3
(_p: dyn Send)
tests/miri-tests/pass/unsized.rs:11
↓ 1 callers
Function
fact
(n: i64)
tests/miri-tests/pass/calls.rs:10
↓ 1 callers
Function
factorial_acc
(n: u32, acc: u32)
tests/miri-tests/pass/function_calls/tail_call.rs:12
↓ 1 callers
Function
fat_pointer_on_32_bit
()
tests/miri-tests/pass/strings.rs:20
↓ 1 callers
Function
fat_ptr_from_struct
(s: FatPtrContainer<'_>)
tests/miri-tests/pass/fat_ptr.rs:23
↓ 1 callers
Function
fat_ptr_project
(a: &Wrapper<[u8]>)
tests/miri-tests/pass/fat_ptr.rs:10
↓ 1 callers
Function
fat_ptr_simple
(a: &[u8])
tests/miri-tests/pass/fat_ptr.rs:14
↓ 1 callers
Function
fat_ptr_store_to
(a: &'a [u8], b: &mut &'a [u8])
tests/miri-tests/pass/fat_ptr.rs:31
↓ 1 callers
Function
fat_ptr_to_struct
(a: &[u8])
tests/miri-tests/pass/fat_ptr.rs:27
↓ 1 callers
Function
fat_ptr_via_local
(a: &[u8])
tests/miri-tests/pass/fat_ptr.rs:18
↓ 1 callers
Method
find_bin
Pretends to be expensive finding a suitable bin for the layout.
tests/miri-tests/pass/box-custom-alloc-aliasing.rs:71
↓ 1 callers
Function
firstn
()
tests/miri-tests/pass/stacked_borrows/coroutine-self-referential.rs:9
↓ 1 callers
Function
flagsplit
(flags: &str)
bsan-script/src/utils.rs:99
↓ 1 callers
Function
fn_coercions
(f: &fn(u32) -> u32)
tests/miri-tests/pass/coercions.rs:10
↓ 1 callers
Function
fn_item_as_closure_trait_object
()
tests/miri-tests/pass/closures.rs:64
↓ 1 callers
Function
fn_item_with_args_as_closure_trait_object
()
tests/miri-tests/pass/closures.rs:70
↓ 1 callers
Function
fn_item_with_multiple_args_as_closure_trait_object
()
tests/miri-tests/pass/closures.rs:78
↓ 1 callers
Function
fn_ptr_as_closure_trait_object
()
tests/miri-tests/pass/closures.rs:95
↓ 1 callers
Function
foldl
(values: &[T], initial: U, mut function: F)
tests/miri-tests/pass/vec-matching-fold.rs:4
↓ 1 callers
Function
foldr
(values: &[T], initial: U, mut function: F)
tests/miri-tests/pass/vec-matching-fold.rs:19
↓ 1 callers
Function
foo
@run:0
tests/miri-tests/pass/multi_arg_closure.rs:2
↓ 1 callers
Function
foo
()
tests/miri-tests/pass/adjacent-allocs.rs:43
↓ 1 callers
Function
foo
(mut x: T)
tests/miri-tests/pass/validation_lifetime_resolution.rs:24
↓ 1 callers
Function
foo
(i: i64)
tests/miri-tests/pass/calls.rs:28
↓ 1 callers
Function
foo
(i: isize, j: char)
tests/miri-tests/pass/sendable-class.rs:12
↓ 1 callers
Function
foo
@run:0 Make sure that we cannot return a `&mut` that got already invalidated.
tests/miri-tests/pass/stacked_borrows/return_invalid_mut.rs:3
↓ 1 callers
Function
foo
@run:0 Make sure that we cannot pass by argument a `&mut` that got already invalidated.
tests/miri-tests/pass/stacked_borrows/pass_invalid_mut.rs:3
↓ 1 callers
Function
foo
@run:0 Make sure that we cannot return a `&mut` that got already invalidated, not even in an `Option`.
tests/miri-tests/pass/stacked_borrows/return_invalid_mut_option.rs:3
↓ 1 callers
Function
foo
@run:0 Make sure that we cannot return a `&mut` that got already invalidated, not even in a tuple.
tests/miri-tests/pass/stacked_borrows/return_invalid_mut_tuple.rs:3
↓ 1 callers
Function
foo
Make sure that we cannot use a returned `&mut` that got already invalidated. fail/both_borrows/return_invalid_shr is already testing that we cannot re
tests/miri-tests/fail/aliasing/tree_borrows/return_invalid_mut.rs:11
↓ 1 callers
Function
foo
Make sure that we cannot use a `&mut` whose parent got invalidated. fail/both_borrows/pass_invalid_shr is already checking a forbidden read, so the ne
tests/miri-tests/fail/aliasing/tree_borrows/pass_invalid_mut.rs:10
↓ 1 callers
Function
foo
Make sure that we cannot return a `&` that got already invalidated, not even in a tuple.
tests/miri-tests/fail/aliasing/both_borrows/return_invalid_shr_tuple.rs:6
↓ 1 callers
Function
foo
Make sure that we cannot pass by argument a `&` that got already invalidated.
tests/miri-tests/fail/aliasing/both_borrows/pass_invalid_shr_tuple.rs:6
↓ 1 callers
Function
foo
Make sure that we cannot pass by argument a `&` that got already invalidated.
tests/miri-tests/fail/aliasing/both_borrows/pass_invalid_shr_option.rs:6
↓ 1 callers
Function
foo
(a: &mut u32, y: *mut u32)
tests/miri-tests/fail/aliasing/both_borrows/illegal_write6.rs:11
← previous
next →
501–600 of 2,093, ranked by callers