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
matches_begin
()
tests/miri-tests/pass/memchr.rs:11
↓ 1 callers
Function
matches_begin_reversed
()
tests/miri-tests/pass/memchr.rs:39
↓ 1 callers
Function
matches_end
()
tests/miri-tests/pass/memchr.rs:15
↓ 1 callers
Function
matches_end_reversed
()
tests/miri-tests/pass/memchr.rs:43
↓ 1 callers
Function
matches_nul
()
tests/miri-tests/pass/memchr.rs:19
↓ 1 callers
Function
matches_nul_reversed
()
tests/miri-tests/pass/memchr.rs:47
↓ 1 callers
Function
matches_one
test fallback implementations on all targets
tests/miri-tests/pass/memchr.rs:7
↓ 1 callers
Function
matches_one_reversed
()
tests/miri-tests/pass/memchr.rs:35
↓ 1 callers
Function
matches_past_nul
()
tests/miri-tests/pass/memchr.rs:23
↓ 1 callers
Function
matches_past_nul_reversed
()
tests/miri-tests/pass/memchr.rs:51
↓ 1 callers
Function
maybe_uninit_preserves_partial_provenance
()
tests/miri-tests/pass/provenance_tests.rs:115
↓ 1 callers
Function
memcpy
(to: *mut T, from: *const T)
tests/miri-tests/should-fail/aliasing/tree_borrows/bytewise_copy_alias.rs:15
↓ 1 callers
Function
metadata_vtable
()
tests/miri-tests/pass/pointers.rs:80
↓ 1 callers
Method
min
()
bsan-rt/src/lib.rs:118
↓ 1 callers
Method
miri
(&self, env: &mut BsanEnv, args: &[String])
bsan-script/src/commands.rs:526
↓ 1 callers
Function
miri_binary
Resolve the real `miri` executable for the active toolchain.
bsan-script/etc/bench.py:178
↓ 1 callers
Function
mk_rec
()
tests/miri-tests/pass/tag-align-dyn-u64.rs:14
↓ 1 callers
Function
mmap
(size_bytes: NonZero<usize>)
bsan-rt/src/memory/mod.rs:129
↓ 1 callers
Function
modulo_assoc
Test for <https://github.com/rust-lang/rust/issues/135315>.
tests/miri-tests/pass/dyn-upcast.rs:509
↓ 1 callers
Function
modulo_binder
Test for <https://github.com/rust-lang/rust/issues/135316>.
tests/miri-tests/pass/dyn-upcast.rs:488
↓ 1 callers
Function
mono_coroutine
( val: Pin<&mut F>, )
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:216
↓ 1 callers
Function
mono_invoke_fn
( val: &F, )
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:139
↓ 1 callers
Function
mono_invoke_fn_once
( val: F, )
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:146
↓ 1 callers
Function
more_discriminant_overflow
()
tests/miri-tests/pass/enums.rs:48
↓ 1 callers
Function
move_file
Rename a file if from and to are in the same filesystem or copy and remove the file otherwise
bsan-script/src/utils.rs:309
↓ 1 callers
Function
multiple_exposed_child
Checks that an access through a wildcard reference doesn't disable any exposed references. It tests this with exposed references where one is the ance
tests/miri-tests/pass/tree_borrows/wildcard/wildcard.rs:54
↓ 1 callers
Function
multiple_exposed_siblings
Checks that an access through a wildcard reference doesn't disable any exposed references. It tests this with exposed references that are siblings of
tests/miri-tests/pass/tree_borrows/wildcard/wildcard.rs:16
↓ 1 callers
Function
multiple_exposed_siblings1
Checks that accessing through a reborrowed wildcard doesn't disable any exposed reference.
tests/miri-tests/pass/tree_borrows/wildcard/reborrow.rs:14
↓ 1 callers
Function
multiple_exposed_siblings2
Checks that wildcard accesses do not invalidate any exposed nodes through which the access could have happened. It checks this for the case where some
tests/miri-tests/pass/tree_borrows/wildcard/reborrow.rs:57
↓ 1 callers
Function
multiple_send
The test taken from the Rust documentation.
tests/miri-tests/pass/channels.rs:23
↓ 1 callers
Function
munmap
(ptr: NonNull<T>, size_bytes: impl Into<NonZero<usize>>)
bsan-rt/src/memory/mod.rs:149
↓ 1 callers
Function
mut_alias
(x: &mut UnsafePinned<i32>, y: &mut UnsafePinned<i32>)
tests/miri-tests/pass/both_borrows/unsafe_pinned.rs:13
↓ 1 callers
Function
mut_below_shr
Transmuting &&i32 to &&mut i32 is fine.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:200
↓ 1 callers
Function
mut_raw_mut
Ensure that if we derive from a mut a raw, and then from that a mut, and then read through the original mut, that does not invalidate the raw. This sh
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:84
↓ 1 callers
Function
mut_raw_mut2
A variant of `mut_raw_mut` that does *not* get accepted by Tree Borrows. It's kind of an accident that we accept it in Stacked Borrows...
tests/miri-tests/fail/aliasing/stacked_borrows/stacked-borrows.rs:15
↓ 1 callers
Function
mut_raw_then_mut_shr
Escape a mut to raw, then share the same mut and use the share, then the raw. That should work.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:56
↓ 1 callers
Function
mut_shr_then_mut_raw
Create first a shared reference and then a raw pointer from a `&mut` should permit mutation through that raw pointer.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:70
↓ 1 callers
Function
mutate
(x: &UnsafePinned<i32>)
tests/miri-tests/pass/both_borrows/unsafe_pinned.rs:8
↓ 1 callers
Function
my_fut
()
tests/miri-tests/pass/future-self-referential.rs:94
↓ 1 callers
Function
my_mut_alias
(x: &mut MyUnsafePinned<i32>, y: &mut MyUnsafePinned<i32>)
tests/miri-tests/pass/both_borrows/unsafe_pinned.rs:26
↓ 1 callers
Function
myfun2
(ptr: *mut i32)
tests/miri-tests/excluded/fail/aliasing/function-calls/return_pointer_aliasing_write_tail_call.rs:33
↓ 1 callers
Function
nested
()
tests/miri-tests/should-pass/c-variadic.rs:49
↓ 1 callers
Function
nested_intrinsic
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:19
↓ 1 callers
Function
nested_tracked
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:23
↓ 1 callers
Function
never
()
tests/miri-tests/pass/async-fn.rs:28
↓ 1 callers
Function
never
()
tests/miri-tests/pass/coroutine.rs:41
↓ 1 callers
Function
never
Regression test from <https://github.com/rust-lang/rust/issues/117288>.
tests/miri-tests/pass/underscore_pattern.rs:103
↓ 1 callers
Method
new_child
( &mut self, base_offset: Size, parent_tag: BorTag, new_tag: BorTag, i
bsan-rt/src/tree_borrows/tree.rs:1131
↓ 1 callers
Method
next
(&self)
bsan-rt/src/memory/heap.rs:150
↓ 1 callers
Function
next_greater_multiple_unchecked
(n: usize, divisor: usize)
bsan-rt/src/memory/mod.rs:112
↓ 1 callers
Function
no_match
()
tests/miri-tests/pass/memchr.rs:31
↓ 1 callers
Function
no_match_empty
()
tests/miri-tests/pass/memchr.rs:27
↓ 1 callers
Function
no_match_empty_reversed
()
tests/miri-tests/pass/memchr.rs:55
↓ 1 callers
Function
no_match_reversed
()
tests/miri-tests/pass/memchr.rs:59
↓ 1 callers
Method
node_count
(&self)
bsan-rt/src/tree_borrows/tree.rs:1125
↓ 1 callers
Function
non_scalar
()
tests/miri-tests/pass/function_calls/tail_call.rs:43
↓ 1 callers
Function
normalize_stdout
(val)
tests/test-cargo-bsan/run_test.py:28
↓ 1 callers
Function
not_unpin_not_protected
()
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:220
↓ 1 callers
Method
notify
(&self)
tests/miri-tests/pass/tls/tls_macro_drop.rs:231
↓ 1 callers
Method
nth_parent
Climb the tree to get the tag of a distant ancestor. Allows operations on tags that are unreachable by the program but still exist in the tree. Not gu
bsan-rt/src/tree_borrows/diagnostics.rs:232
↓ 1 callers
Function
num_arg_flag
Determines how many times a `--flag` is present.
cargo-bsan/src/arg.rs:12
↓ 1 callers
Method
on_heap
(self, is_zst: bool)
tests/miri-tests/pass/both_borrows/smallvec.rs:52
↓ 1 callers
Function
one
()
tests/miri-tests/pass/disjoint-array-accesses.rs:14
↓ 1 callers
Function
only_foreign_is_temporary
When accessing an allocation through a tag that was created from wildcard reference we treat nodes with a larger tag as if the access could only have
tests/miri-tests/pass/tree_borrows/wildcard/reborrow.rs:182
↓ 1 callers
Function
overaligned_casts
()
tests/miri-tests/pass/enums.rs:124
↓ 1 callers
Function
padding_clear_corner_case
This hits a corner case in the logic for clearing padding on typed copies.
tests/miri-tests/pass/enums.rs:137
↓ 1 callers
Function
panic
()
tests/miri-tests/should-pass/performance/panic/thread_panic.rs:6
↓ 1 callers
Function
panic_named
()
tests/miri-tests/should-pass/performance/panic/thread_panic.rs:12
↓ 1 callers
Function
partially_invalidate_mut
()
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:104
↓ 1 callers
Function
pass_to_ptr_call
(f: fn(T), x: T)
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:72
↓ 1 callers
Method
patchStackSlots
Patches both section counters and promotes their tracking allocas.
bsan-pass/BorrowSanitizer.cpp:1020
↓ 1 callers
Method
perform_normal_access
Performs a normal access on the tree containing `access_source`. Returns the root index of this tree. `access_source`: The index of the tag being acc
bsan-rt/src/tree_borrows/tree.rs:811
↓ 1 callers
Method
perform_protector_end_access
( &mut self, tag: BorTag, global: &GlobalState, alloc_id: AllocId, spa
bsan-rt/src/tree_borrows/tree.rs:1189
↓ 1 callers
Method
perform_wildcard_access
Performs a wildcard access on the tree with root `root`. Takes the `access_relatedness` for each node from the `WildcardState` datastructure. `root`:
bsan-rt/src/tree_borrows/tree.rs:885
↓ 1 callers
Function
phase_cargo_bsan
(mut args: impl Iterator<Item = String>)
cargo-bsan/src/phases.rs:63
↓ 1 callers
Function
phase_rustdoc
(args: impl Iterator<Item = String>)
cargo-bsan/src/phases.rs:356
↓ 1 callers
Function
pin_box_dyn
()
tests/miri-tests/pass/dyn-arbitrary-self.rs:7
↓ 1 callers
Function
pointers_and_wrappers
()
tests/miri-tests/pass/dyn-arbitrary-self.rs:65
↓ 1 callers
Method
poll
(self: Pin<&mut Self>, _cx: &mut Context<'_>)
tests/miri-tests/pass/issues/issue-miri-2068.rs:28
↓ 1 callers
Method
print_exposed
Print extra text if the tag is exposed.
bsan-rt/src/tree_borrows/diagnostics.rs:588
↓ 1 callers
Method
print_perm
Print the permission with the format ` Res`/` Re*`/` Unq`/` Frz`/` Dis` for accessed locations and `?Res`/`?Re*`/`?Unq`/`?Frz`/`?Dis` for unaccessed l
bsan-rt/src/tree_borrows/diagnostics.rs:554
↓ 1 callers
Method
print_protector
Print extra text if the tag has a protector.
bsan-rt/src/tree_borrows/diagnostics.rs:578
↓ 1 callers
Function
print_s
(s: &S)
tests/miri-tests/pass/issues/issue-3794.rs:22
↓ 1 callers
Function
print_t
(t: &dyn T)
tests/miri-tests/pass/issues/issue-3794.rs:18
↓ 1 callers
Method
print_tag
Print the tag with the format `<XYZ>` if the tag is unnamed, and `<XYZ=name>` if the tag is named.
bsan-rt/src/tree_borrows/diagnostics.rs:568
↓ 1 callers
Method
print_tree
Display the contents of the tree.
bsan-rt/src/tree_borrows/diagnostics.rs:883
↓ 1 callers
Method
print_tree_diff
Print the diff between me and an older tree
bsan-rt/src/tree_borrows/diagnostics.rs:910
↓ 1 callers
Function
process_config
( cfg: dict, target: str, scratch: Path, )
bsan-script/etc/bench.py:292
↓ 1 callers
Method
produces_disabled
Determines if this transition would disable the permission.
bsan-rt/src/tree_borrows/perms.rs:462
↓ 1 callers
Function
prompt_user_unless
(skip: bool, prompt: &str)
bsan-script/src/utils.rs:35
↓ 1 callers
Function
protect
(ref3: &mut u32)
tests/miri-tests/pass/tree_borrows/wildcard/undetected_ub.rs:73
↓ 1 callers
Function
protected_exposed
If a reference is protected, then all foreign writes to it cause UB. This effectively means any write needs to happen through a child of the protected
tests/miri-tests/pass/tree_borrows/wildcard/undetected_ub.rs:64
↓ 1 callers
Function
protector
Checks that we can pass a wildcard reference to a function.
tests/miri-tests/pass/tree_borrows/wildcard/wildcard.rs:112
↓ 1 callers
Function
protector_conflicted_release
Checks whether we correctly handle the protector being released on a conflicted exposed reference.
tests/miri-tests/pass/tree_borrows/wildcard/wildcard.rs:129
↓ 1 callers
Method
protector_end
(&mut self, global_ctx: &GlobalCtx, span: Span)
bsan-rt/src/borrow_tracker.rs:342
↓ 1 callers
Method
protector_end_access
What kind of access to perform before releasing the protector.
bsan-rt/src/tree_borrows/perms.rs:356
↓ 1 callers
Function
ptr_arith_offset
()
tests/miri-tests/pass/ptr_offset.rs:55
↓ 1 callers
Function
ptr_arith_offset_overflow
()
tests/miri-tests/pass/ptr_offset.rs:62
↓ 1 callers
Function
ptr_bitops1
()
tests/miri-tests/pass/intptrcast.rs:49
↓ 1 callers
Function
ptr_bitops2
()
tests/miri-tests/pass/intptrcast.rs:57
← previous
next →
701–800 of 2,093, ranked by callers