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
foo
Make sure that we cannot return a `&` that got already invalidated.
tests/miri-tests/fail/aliasing/both_borrows/return_invalid_shr.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.rs:6
↓ 1 callers
Function
foo
Deallocating `x` is UB because not all bytes are in an `UnsafeCell`.
tests/miri-tests/fail/aliasing/both_borrows/mixed_cell_deallocate.rs:11
↓ 1 callers
Function
foo
Make sure that we cannot return a `&` that got already invalidated, not even in an `Option`.
tests/miri-tests/fail/aliasing/both_borrows/return_invalid_shr_option.rs:6
↓ 1 callers
Function
foo
(ptr: *const i32)
tests/fail/aliasing/frozen_write.rs:8
↓ 1 callers
Function
foo
()
tests/fail/aliasing/bsan-ptr-craft.rs:3
↓ 1 callers
Function
foo
(_r: &mut i32, p: *mut i32)
tests/fail/aliasing/protected_write.rs:9
↓ 1 callers
Function
foo
(p: *mut i32)
tests/fail/baseline/access_oob.rs:9
↓ 1 callers
Method
foo
(&self)
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:125
↓ 1 callers
Method
foo
(&self, _: u32)
tests/miri-tests/pass/cast-rfc0401-vtable-kinds.rs:22
↓ 1 callers
Method
foo_b
(&self)
tests/miri-tests/pass/dyn-upcast.rs:413
↓ 1 callers
Function
foo_to_bar
(u: *const FooS<T>)
tests/miri-tests/pass/cast-rfc0401-vtable-kinds.rs:40
↓ 1 callers
Function
force_mut0
(f: F)
tests/miri-tests/pass/coerce_non_capture_closure_to_fn_ptr.rs:12
↓ 1 callers
Function
force_mut1
(f: F)
tests/miri-tests/pass/coerce_non_capture_closure_to_fn_ptr.rs:15
↓ 1 callers
Function
force_once0
use to first make the closure FnOnce() before making it fn()
tests/miri-tests/pass/coerce_non_capture_closure_to_fn_ptr.rs:6
↓ 1 callers
Function
force_once1
(f: F)
tests/miri-tests/pass/coerce_non_capture_closure_to_fn_ptr.rs:9
↓ 1 callers
Function
foreign_read
A non-child node was read-accessed: keep `Reserved` but mark it as `conflicted` if it is protected; invalidate `Unique`.
bsan-rt/src/tree_borrows/perms.rs:186
↓ 1 callers
Function
foreign_write
A non-child node was write-accessed: this makes everything `Disabled` except for non-protected interior mutable `Reserved` which stay the same.
bsan-rt/src/tree_borrows/perms.rs:241
↓ 1 callers
Method
forget
Keep only the tag and creation
bsan-rt/src/tree_borrows/diagnostics.rs:278
↓ 1 callers
Function
format
()
tests/miri-tests/pass/intptrcast.rs:34
↓ 1 callers
Function
forward_by_ref
()
tests/miri-tests/should-pass/c-variadic.rs:35
↓ 1 callers
Function
forward_by_val
()
tests/miri-tests/should-pass/c-variadic.rs:22
↓ 1 callers
Function
fun1
(x: &mut u8)
tests/miri-tests/fail/aliasing/stacked_borrows/pointer_smuggling.rs:4
↓ 1 callers
Function
fun2
()
tests/miri-tests/fail/aliasing/stacked_borrows/pointer_smuggling.rs:10
↓ 1 callers
Function
func
(v: &mut T, f: fn(&T) -> T)
tests/miri-tests/pass/calls.rs:39
↓ 1 callers
Function
func_c
()
tests/miri-tests/should-pass/performance/backtrace/backtrace-std.rs:23
↓ 1 callers
Function
functions
()
tests/miri-tests/pass/intptrcast.rs:106
↓ 1 callers
Function
fuzzing_block_on
(fut: F)
tests/miri-tests/pass/issues/issue-miri-2068.rs:6
↓ 1 callers
Method
gen_klu_spec
(&self)
tests/fail-dep/mirilli/klu-rs.rs:15
↓ 1 callers
Function
getBorrowSanitizerPluginInfo
bsan-pass/BorrowSanitizerPass.cpp:7
↓ 1 callers
Method
getFrameHeaderBottom
bsan-pass/BorrowSanitizer.cpp:940
↓ 1 callers
Function
getOrInsertGlobal
bsan-pass/BorrowSanitizer.cpp:102
↓ 1 callers
Method
getOutgoingOffset
Returns the current offset from the top of the relevant section. This is used to update the stack pointer before calling functions and to get the tota
bsan-pass/BorrowSanitizer.cpp:1014
↓ 1 callers
Method
getStackPtr
Returns a pointer to the bottom of the specified section of the shadow frame.
bsan-pass/BorrowSanitizer.cpp:1002
↓ 1 callers
Function
get_environ
()
tests/miri-tests/should-fail/baseline/environ-gets-deallocated.rs:4
↓ 1 callers
Method
get_exposed_provenance
(&self, range: AllocRange)
bsan-rt/src/global.rs:143
↓ 1 callers
Method
get_or_insert
Either get a previously existing entry, or create a new one if it is not yet present.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:151
↓ 1 callers
Function
global_to_box
()
tests/miri-tests/pass/heap_allocator.rs:99
↓ 1 callers
Function
hello_world
()
tests/miri-tests/pass/async-fn.rs:53
↓ 1 callers
Function
helper
(val: Box<Cell<u8>>, ptr: *const Cell<u8>)
tests/miri-tests/fail/aliasing/box-cell-alias.rs:8
↓ 1 callers
Function
huge_align
()
tests/miri-tests/pass/align_offset_symbolic.rs:98
↓ 1 callers
Function
huge_zst
()
tests/miri-tests/pass/arrays.rs:65
↓ 1 callers
Function
ignores_arguments
()
tests/miri-tests/should-pass/c-variadic.rs:6
↓ 1 callers
Function
implicit
The code below is shorthand for the code above (and more likely to represent what one encounters in practice).
tests/miri-tests/pass/regions-lifetime-nonfree-late-bound.rs:28
↓ 1 callers
Function
inSCC
bsan-pass/BorrowSanitizer.cpp:110
↓ 1 callers
Function
increment
(x: i32)
tests/miri-tests/pass/calls.rs:3
↓ 1 callers
Method
increment
Increments the reference count, returning `true` if the count went from zero to one.
bsan-rt/src/borrow_tracker.rs:353
↓ 1 callers
Method
increment
Increment the indentation by one. Note: need to know if this is the last child or not because the presence of other children changes the way the inden
bsan-rt/src/tree_borrows/diagnostics.rs:609
↓ 1 callers
Method
initFrameHeader
bsan-pass/BorrowSanitizer.cpp:917
↓ 1 callers
Function
init_global_ctx
()
bsan-rt/src/global.rs:280
↓ 1 callers
Method
initial_state
State that the pattern deterministically produces immediately after the retag of `x`.
bsan-rt/src/tree_borrows/tree/tests.rs:708
↓ 1 callers
Function
initialize_inner
()
tests/miri-tests/pass/concurrency/concurrent_caller_location.rs:9
↓ 1 callers
Function
initialize_inner
(_init: &mut dyn FnMut() -> bool)
tests/miri-tests/pass/concurrency/issue-miri-1643.rs:8
↓ 1 callers
Function
inner
(t: T)
tests/miri-tests/pass/closures.rs:9
↓ 1 callers
Function
inner
(t: &mut Thing)
tests/miri-tests/pass/stacked_borrows/fnentry_invalidation2.rs:20
↓ 1 callers
Function
inner
@run:0
tests/miri-tests/pass/stacked_borrows/invalidate_against_protector1.rs:2
↓ 1 callers
Function
inner
(x: &mut NotUnpin, f: fn(&mut NotUnpin))
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:228
↓ 1 callers
Function
inner
(x: &mut i32, f: fn(*mut i32))
tests/miri-tests/fail/aliasing/tree_borrows/strongly-protected.rs:5
↓ 1 callers
Function
inner
(x: &mut i32, f: fn(usize))
tests/miri-tests/fail/aliasing/tree_borrows/wildcard/strongly_protected_wildcard.rs:5
↓ 1 callers
Function
inner
(x: &mut i32, f: fn(&mut i32))
tests/miri-tests/fail/aliasing/stacked_borrows/deallocate_against_protector1.rs:4
↓ 1 callers
Function
inner
(x: *mut i32, _y: &i32)
tests/miri-tests/fail/aliasing/both_borrows/invalidate_against_protector2.rs:5
↓ 1 callers
Function
inner
(x: *mut i32, _y: &i32)
tests/miri-tests/fail/aliasing/both_borrows/invalidate_against_protector3.rs:7
↓ 1 callers
Function
install_git_hooks
Installs git hooks
bsan-script/src/utils.rs:105
↓ 1 callers
Function
install_toolchain
( sh: &Shell, host: &VersionMeta, config: &mut BsanConfig, toolchain_dir: &Path, local_dir
bsan-script/src/setup.rs:87
↓ 1 callers
Method
instrumentFunction
bsan-pass/BorrowSanitizer.cpp:2285
↓ 1 callers
Method
instrumentModule
bsan-pass/BorrowSanitizer.cpp:456
↓ 1 callers
Function
int_load_strip_provenance
()
tests/miri-tests/pass/provenance_tests.rs:109
↓ 1 callers
Function
interior_mut_reborrow
spurious warning
tests/miri-tests/pass/tree_borrows/sb_fails.rs:82
↓ 1 callers
Function
into_interior_mutability
Getting a pointer into a union with interior mutability used to be tricky business (https://github.com/rust-lang/miri/issues/615), but it should work
tests/miri-tests/pass/both_borrows/interior_mutability.rs:64
↓ 1 callers
Function
into_unique
()
tests/miri-tests/pass/box.rs:26
↓ 1 callers
Function
invalid_let
()
tests/miri-tests/pass/underscore_pattern.rs:61
↓ 1 callers
Function
invalid_let_type_annotation
()
tests/miri-tests/pass/underscore_pattern.rs:88
↓ 1 callers
Function
invalid_match
()
tests/miri-tests/pass/underscore_pattern.rs:29
↓ 1 callers
Function
invalid_scalar
()
tests/miri-tests/pass/intrinsics/typed-swap-invalid-scalar.rs:9
↓ 1 callers
Function
invoke_inner
(b: &dyn B)
tests/miri-tests/pass/dyn-upcast.rs:424
↓ 1 callers
Function
invoke_outer
(c: &dyn C)
tests/miri-tests/pass/dyn-upcast.rs:428
↓ 1 callers
Method
is_cell
Check if `self` is the shared-reference-to-interior-mutable-data state of a pointer.
bsan-rt/src/tree_borrows/perms.rs:302
↓ 1 callers
Method
is_disabled
Check if `self` is the terminal state of a pointer (is `Disabled`).
bsan-rt/src/tree_borrows/perms.rs:293
↓ 1 callers
Method
is_foreign
Returns true if this access is foreign, i.e. not local.
bsan-rt/src/tree_borrows/foreign_access_skipping.rs:66
↓ 1 callers
Method
is_frozen
Check if `self` is the never-allow-writes-again state of a pointer (is `Frozen`).
bsan-rt/src/tree_borrows/perms.rs:297
↓ 1 callers
Method
is_initial
(&self)
bsan-rt/src/tree_borrows/tree/tests.rs:386
↓ 1 callers
Method
is_relevant
Determines whether `self` is a relevant transition for the error `err`. `self` will be a transition that happened to a tag some time before that tag c
bsan-rt/src/tree_borrows/perms.rs:561
↓ 1 callers
Function
is_target_crate
Determines if we are being invoked (as rustc) to build a crate for the "target" architecture, in contrast to the "host" architecture. Host crates are
cargo-bsan/src/phases.rs:224
↓ 1 callers
Method
is_useless
Checks if a node is useless and should be GC'ed. A node is useless if it has no children and also the tag is no longer live.
bsan-rt/src/tree_borrows/tree.rs:446
↓ 1 callers
Function
iter_any
()
tests/miri-tests/pass/iter.rs:25
↓ 1 callers
Function
iter_empty_and_zst
@run:0
tests/miri-tests/pass/iter.rs:2
↓ 1 callers
Function
join_orders_after_tls_destructors
This test tests that TLS destructors have run before the thread joins. The test has no false positives (meaning: if the test fails, there's actually a
tests/miri-tests/pass/tls/tls_macro_drop.rs:120
↓ 1 callers
Function
kill_descendants
(root_pid: i32)
tests/fix_utils.rs:114
↓ 1 callers
Function
large_raw_slice
()
tests/miri-tests/pass/slices.rs:261
↓ 1 callers
Function
lib1
(x: &&mut i32)
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:244
↓ 1 callers
Function
lib2
()
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:250
↓ 1 callers
Function
links_executable
Whether this rustc invocation links an executable (a `bin` or `cdylib`), as opposed to an rlib (which only records native-lib deps) or a Rust `dylib`
cargo-bsan/src/phases.rs:288
↓ 1 callers
Function
list_from
(v: &[T])
tests/miri-tests/pass/linked-list.rs:7
↓ 1 callers
Function
list_tests
Return all #[test] names discovered in the given test binary.
bsan-script/etc/bench.py:251
↓ 1 callers
Method
llvm_libdir
(&self)
cargo-bsan/src/llvm.rs:73
↓ 1 callers
Method
llvm_runtime
(&self)
cargo-bsan/src/setup.rs:132
↓ 1 callers
Function
local_addr_of_mut
()
tests/miri-tests/pass/tree_borrows/tree-borrows.rs:18
↓ 1 callers
Function
looks_like_rustdoc
Returns `true` if our flags look like they may be for rustdoc, i.e., this is cargo calling us to be rustdoc. It's hard to be sure as cargo does not ha
cargo-bsan/src/main.rs:15
↓ 1 callers
Function
main
(argv: list[str])
bsan-script/etc/bench.py:395
↓ 1 callers
Function
make_ref
(x: *mut i32)
tests/miri-tests/fail/baseline/dangling_pointers/stack_temporary.rs:5
← previous
next →
601–700 of 2,093, ranked by callers