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
atomic_bool
()
tests/miri-tests/pass/atomic.rs:23
↓ 1 callers
Function
atomic_fences
()
tests/miri-tests/pass/atomic.rs:129
↓ 1 callers
Function
atomic_ptr
()
tests/miri-tests/pass/atomic.rs:140
↓ 1 callers
Function
atomic_u64
()
tests/miri-tests/pass/atomic.rs:85
↓ 1 callers
Function
bar
@run:0
tests/miri-tests/pass/subslice_array.rs:2
↓ 1 callers
Function
bar
(i: i32, j: i32, k: f32)
tests/miri-tests/pass/closures.rs:84
↓ 1 callers
Method
bar
(self: Pin<&mut Self>)
tests/miri-tests/pass/dyn-arbitrary-self.rs:15
↓ 1 callers
Method
base_address
(&self)
bsan-rt/src/memory/heap.rs:187
↓ 1 callers
Function
basic
()
tests/miri-tests/pass/coroutine.rs:14
↓ 1 callers
Function
basic
()
tests/miri-tests/pass/dyn-upcast.rs:24
↓ 1 callers
Function
basic
Some basic smoke tests for provenance.
tests/miri-tests/pass/provenance_tests.rs:18
↓ 1 callers
Function
basic_raw
()
tests/miri-tests/pass/ptr_raw.rs:5
↓ 1 callers
Function
bidirectional_subtyping
()
tests/miri-tests/pass/dyn-upcast.rs:537
↓ 1 callers
Method
bin
(&self)
cargo-bsan/src/util.rs:259
↓ 1 callers
Method
binary
(&self, binary: &str)
cargo-bsan/src/util.rs:263
↓ 1 callers
Function
block_on
(fut: impl Future<Output = T>)
tests/miri-tests/pass/async-closure.rs:8
↓ 1 callers
Function
block_on
(fut: impl Future<Output = T>)
tests/miri-tests/pass/async-closure-captures.rs:10
↓ 1 callers
Function
block_on
(fut: impl Future<Output = T>)
tests/miri-tests/pass/async-closure-drop.rs:8
↓ 1 callers
Function
borrow_field_a
(this: *mut Foo)
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:148
↓ 1 callers
Function
borrow_field_b
(this: *mut Foo)
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:152
↓ 1 callers
Function
box_dyn
()
tests/miri-tests/pass/closures.rs:52
↓ 1 callers
Function
box_into_raw_allows_interior_mutable_alias
()
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:264
↓ 1 callers
Function
box_to_global
()
tests/miri-tests/pass/heap_allocator.rs:110
↓ 1 callers
Function
boxed_pair_to_vec
()
tests/miri-tests/pass/box.rs:40
↓ 1 callers
Function
boxy
()
tests/miri-tests/pass/both_borrows/maybe_dangling.rs:18
↓ 1 callers
Function
bsan_aligned_alloc
bsan-rt/llvm-wrapper/bsan_allocator.cpp:240
↓ 1 callers
Function
bsan_calloc
bsan-rt/llvm-wrapper/bsan_allocator.cpp:196
↓ 1 callers
Function
bsan_cflags
(deps: &Dependencies, llvm_tools: &LlvmTools)
cargo-bsan/src/phases.rs:348
↓ 1 callers
Function
bsan_config
( target: &VersionMeta, path: &str, mode: Mode, with_dependencies: Option<WithDependencies>, )
tests/ui.rs:42
↓ 1 callers
Function
bsan_malloc
bsan-rt/llvm-wrapper/bsan_allocator.cpp:192
↓ 1 callers
Function
bsan_posix_memalign
bsan-rt/llvm-wrapper/bsan_allocator.cpp:262
↓ 1 callers
Function
bsan_pvalloc
bsan-rt/llvm-wrapper/bsan_allocator.cpp:226
↓ 1 callers
Function
bsan_rustflags
(env: &EnvConfig, deps: &Dependencies, llvm_tools: &LlvmTools)
cargo-bsan/src/phases.rs:296
↓ 1 callers
Function
bsan_valloc
bsan-rt/llvm-wrapper/bsan_allocator.cpp:221
↓ 1 callers
Method
build
(&self, crate_dir: impl AsRef<OsStr>, args: &[String])
bsan-script/src/env.rs:368
↓ 1 callers
Method
bumpStackSlot
Allocates one or more shadow stack slots from the requested section.
bsan-pass/BorrowSanitizer.cpp:968
↓ 1 callers
Function
bytewise_custom_memcpy
()
tests/miri-tests/pass/provenance_tests.rs:52
↓ 1 callers
Function
bytewise_custom_memcpy_chunked
()
tests/miri-tests/pass/provenance_tests.rs:73
↓ 1 callers
Function
bytewise_ptr_methods
()
tests/miri-tests/pass/provenance_tests.rs:32
↓ 1 callers
Function
c
()
tests/miri-tests/pass/union.rs:46
↓ 1 callers
Function
call
(f: &mut impl AsyncFn(i32))
tests/miri-tests/pass/async-closure.rs:20
↓ 1 callers
Function
call_mut
(f: &mut impl AsyncFnMut(i32))
tests/miri-tests/pass/async-closure.rs:24
↓ 1 callers
Function
call_normal
(f: &impl Fn(i32) -> F)
tests/miri-tests/pass/async-closure.rs:32
↓ 1 callers
Function
call_normal_mut
(f: &mut impl FnMut(i32) -> F)
tests/miri-tests/pass/async-closure.rs:36
↓ 1 callers
Function
call_once
(f: impl async FnOnce(DropMe))
tests/miri-tests/pass/async-closure-drop.rs:20
↓ 1 callers
Function
call_return_into_passed_reference
()
tests/miri-tests/pass/calls.rs:38
↓ 1 callers
Function
callee
(xraw: *mut i32)
tests/miri-tests/pass/stacked_borrows/illegal_read2.rs:15
↓ 1 callers
Function
callee
(xraw: *mut i32)
tests/miri-tests/pass/stacked_borrows/illegal_read1.rs:15
↓ 1 callers
Function
callee
(xref1: HiddenRef)
tests/miri-tests/pass/stacked_borrows/illegal_read3.rs:25
↓ 1 callers
Function
callee
(xraw: *mut i32)
tests/miri-tests/pass/stacked_borrows/track_caller.rs:16
↓ 1 callers
Function
callee
(xraw: *mut i32)
tests/miri-tests/fail/aliasing/both_borrows/illegal_write5.rs:19
↓ 1 callers
Method
can_be_replaced_by_single_child
Checks whether a node can be replaced by its only child. If so, returns the index of said only child. If not, returns none.
bsan-rt/src/tree_borrows/tree.rs:461
↓ 1 callers
Method
can_be_replaced_by_single_child_dead
Like [`Self::can_be_replaced_by_single_child`], but for the dead-tag GC path. The caller iterates the dead tags directly, so `idx` is already known to
bsan-rt/src/tree_borrows/tree.rs:502
↓ 1 callers
Method
can_skip_foreign_access
Returns true if a node where the strongest idempotent foreign access is `self` can skip the access `happening_next`. Note that if this returns `true`,
bsan-rt/src/tree_borrows/foreign_access_skipping.rs:41
↓ 1 callers
Function
cast
()
tests/miri-tests/pass/intptrcast.rs:11
↓ 1 callers
Function
cast_dangling
Test usize->ptr cast for dangling and OOB address. That is safe, and thus has to work.
tests/miri-tests/pass/intptrcast.rs:22
↓ 1 callers
Function
cell_inside_struct
()
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:277
↓ 1 callers
Function
cell_to_ref
Forget about the interior mutability of a cell.
tests/miri-tests/pass/tree_borrows/transmute-unsafecell.rs:28
↓ 1 callers
Function
check
()
tests/miri-tests/pass/union-overwrite.rs:22
↓ 1 callers
Method
check
(&self, env: &mut BsanEnv, args: &[String])
bsan-script/src/commands.rs:522
↓ 1 callers
Function
check_blocking
Check that the destructor can be blocked joining another thread.
tests/miri-tests/pass/tls/tls_macro_drop.rs:50
↓ 1 callers
Function
check_both
(val: &Foo<[u8]>)
tests/miri-tests/pass/issues/issue-23261.rs:35
↓ 1 callers
Function
check_destructors
Check that destructors of the library thread locals are executed immediately after a thread terminates.
tests/miri-tests/pass/tls/tls_macro_drop.rs:10
↓ 1 callers
Function
check_dst_val
(val: &Foo<[u8]>)
tests/miri-tests/pass/issues/issue-23261.rs:27
↓ 1 callers
Function
check_list_2
(mut ap: ...)
tests/miri-tests/should-pass/c-variadic.rs:71
↓ 1 callers
Function
check_tls_init_in_dtor
()
tests/miri-tests/pass/tls/tls_macro_drop.rs:84
↓ 1 callers
Function
check_trait_obj
(val: &Foo<dyn Get>)
tests/miri-tests/pass/issues/issue-23261.rs:44
↓ 1 callers
Function
check_val
(val: &Foo<[u8]>)
tests/miri-tests/pass/issues/issue-23261.rs:19
↓ 1 callers
Function
child_read
A child node was read-accessed: UB on Disabled, noop on the rest.
bsan-rt/src/tree_borrows/perms.rs:175
↓ 1 callers
Function
child_write
A child node was write-accessed: `Reserved` must become `Unique` to obtain write permissions, `Frozen` and `Disabled` cannot obtain such permissions a
bsan-rt/src/tree_borrows/perms.rs:224
↓ 1 callers
Function
clean_sysroot_dir
(sysroot: &Sysroot)
cargo-bsan/src/util.rs:176
↓ 1 callers
Function
clean_target_dir
()
cargo-bsan/src/util.rs:182
↓ 1 callers
Method
cmp
(a: *const c_void, b: *const c_void)
tests/fail-dep/mirilli/blitsort-sys.rs:15
↓ 1 callers
Function
coerce_fat_ptr_wrapper
( p: PtrWrapper<dyn Fn(u32) -> u32 + Send>, )
tests/miri-tests/pass/coercions.rs:40
↓ 1 callers
Function
coerce_ptr_wrapper
(p: PtrWrapper<[u8; 3]>)
tests/miri-tests/pass/coercions.rs:32
↓ 1 callers
Function
coerce_ptr_wrapper_poly
(p: PtrWrapper<'a, T>)
tests/miri-tests/pass/coercions.rs:46
↓ 1 callers
Function
coerce_triv_ptr_wrapper
(p: TrivPtrWrapper<[u8; 3]>)
tests/miri-tests/pass/coercions.rs:36
↓ 1 callers
Method
compatible_with_protector
(&self)
bsan-rt/src/tree_borrows/perms.rs:136
↓ 1 callers
Function
compile_miri_tests
(cwd: Path)
bsan-script/etc/bench.py:227
↓ 1 callers
Function
compile_test_binary
Compiles the test binary for the given cargo invocation and copies it into `out_dir`. Aborts on compile failure or if no executable is created.
bsan-script/etc/bench.py:147
↓ 1 callers
Function
const_addr
()
tests/miri-tests/pass/const-addrs.rs:30
↓ 1 callers
Function
create_and_detach
()
tests/miri-tests/pass/concurrency/simple.rs:6
↓ 1 callers
Function
create_and_get_result
()
tests/miri-tests/pass/concurrency/simple.rs:14
↓ 1 callers
Function
create_and_join
()
tests/miri-tests/pass/concurrency/simple.rs:10
↓ 1 callers
Function
create_and_leak_result
()
tests/miri-tests/pass/concurrency/simple.rs:19
↓ 1 callers
Method
create_event
Creates a history event.
bsan-rt/src/tree_borrows/diagnostics.rs:96
↓ 1 callers
Function
create_move_in
()
tests/miri-tests/pass/concurrency/simple.rs:35
↓ 1 callers
Function
create_move_out
()
tests/miri-tests/pass/concurrency/simple.rs:44
↓ 1 callers
Function
create_nested_and_detach
()
tests/miri-tests/pass/concurrency/simple.rs:23
↓ 1 callers
Function
create_nested_and_join
()
tests/miri-tests/pass/concurrency/simple.rs:29
↓ 1 callers
Function
cross_tree_update_older_invalid_exposed
Checks how accesses from one subtree affect other subtrees. This test shows an example where we don't update a node whose exposed children are greater
tests/miri-tests/pass/tree_borrows/wildcard/undetected_ub.rs:112
↓ 1 callers
Function
curl_version
(sh: &Shell)
bsan-script/src/utils.rs:218
↓ 1 callers
Function
d
()
tests/miri-tests/pass/union.rs:80
↓ 1 callers
Function
dangling_let
()
tests/miri-tests/pass/underscore_pattern.rs:49
↓ 1 callers
Function
dangling_let_type_annotation
Adding a type annotation used to change how MIR is generated, make sure we cover both cases.
tests/miri-tests/pass/underscore_pattern.rs:76
↓ 1 callers
Function
dangling_match
()
tests/miri-tests/pass/underscore_pattern.rs:17
↓ 1 callers
Function
dangling_pointer
()
tests/miri-tests/pass/pointers.rs:54
↓ 1 callers
Method
data
(&self, matrix: u32)
tests/fail-dep/mirilli/klu-rs.rs:22
↓ 1 callers
Function
data2_delta
()
tests/fail-dep/mirilli/librsync.rs:10
↓ 1 callers
Function
data_moved
Same thing as above, but non-async.
tests/miri-tests/pass/move-data-across-await-point.rs:38
← previous
next →
401–500 of 2,093, ranked by callers