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
↓ 2 callers
Function
__bsan_dealloc
bsan-rt/llvm-wrapper/bsan.cpp:454
↓ 2 callers
Function
__bsan_dealloc_stack_impl
( bor_tag: BorTag, alloc_info: *mut AllocInfo, span: Span, )
bsan-rt/src/lib.rs:463
↓ 2 callers
Function
__bsan_destroy_stack_slot_impl
(slot: NonNull<AllocInfo>)
bsan-rt/src/lib.rs:518
↓ 2 callers
Function
__bsan_eject
(alloc_info: NonNull<AllocInfo>)
bsan-rt/src/lib.rs:570
↓ 2 callers
Function
__bsan_rc_inc
bsan-rt/llvm-wrapper/bsan.cpp:391
↓ 2 callers
Function
_build_env
Creates a copy of the current environment, merged with an `env` mapping from `kwargs`.
bsan-script/etc/bench.py:89
↓ 2 callers
Method
access
( &mut self, global_ctx: &GlobalCtx, access_kind: AccessKind, span: Span,
bsan-rt/src/borrow_tracker.rs:363
↓ 2 callers
Function
active_sysroot
Gets the sysroot of the active toolchain
bsan-script/src/utils.rs:78
↓ 2 callers
Function
active_toolchain
Queries the active toolchain for the repository.
bsan-script/src/utils.rs:70
↓ 2 callers
Function
add
(x: u32, y: u32)
tests/miri-tests/pass/async-fn.rs:17
↓ 2 callers
Method
add_name
Add a name to the tag. If a same tag is associated to several pointers, it can have several names which will be separated by commas.
bsan-rt/src/tree_borrows/diagnostics.rs:206
↓ 2 callers
Function
advance
(src: u32, tgt: u32)
tests/miri-tests/pass/function_calls/tail_call.rs:32
↓ 2 callers
Method
alignRelativeTo
bsan-pass/BorrowSanitizer.cpp:174
↓ 2 callers
Function
as_mut_slice
(self_: &Vec<T>)
tests/miri-tests/fail/aliasing/both_borrows/buggy_as_mut_slice.rs:7
↓ 2 callers
Method
assert_artifact
(&self, artifact_name: &str)
bsan-script/src/env.rs:301
↓ 2 callers
Method
associated_access
(&self)
bsan-rt/src/tree_borrows/perms.rs:345
↓ 2 callers
Method
base_addr
# Safety This instance of `AllocInfo` must represent a valid, non-freed allocation. Otherwise, the contents of its base address will be initialized wi
bsan-rt/src/borrow_tracker.rs:36
↓ 2 callers
Function
box_poll
( mut f: Pin<Box<F>>, cx: &mut Context<'_>, )
tests/miri-tests/pass/future-self-referential.rs:103
↓ 2 callers
Function
break_it
(rc: &RefCell<i32>, r: Ref<'_, i32>)
tests/miri-tests/pass/both_borrows/interior_mutability.rs:154
↓ 2 callers
Function
bsan_memalign
bsan-rt/llvm-wrapper/bsan_allocator.cpp:251
↓ 2 callers
Function
bsan_realloc
bsan-rt/llvm-wrapper/bsan_allocator.cpp:200
↓ 2 callers
Function
call_once
(f: impl AsyncFnOnce(i32))
tests/miri-tests/pass/async-closure.rs:28
↓ 2 callers
Method
can_be_replaced_by_child
During a provenance GC, we want to compact the tree. For this, we want to merge nodes upwards if they have a singleton parent. But we need to be caref
bsan-rt/src/tree_borrows/perms.rs:387
↓ 2 callers
Method
cargo_output_dir
(&self)
bsan-script/src/env.rs:70
↓ 2 callers
Function
check_align_requests
(allocator: T)
tests/miri-tests/pass/heap_allocator.rs:68
↓ 2 callers
Function
check_alloc
(allocator: T)
tests/miri-tests/pass/heap_allocator.rs:8
↓ 2 callers
Function
check_for_fix
(mode: Mode)
tests/ui.rs:332
↓ 2 callers
Function
check_output
(actual, path, regex, name)
tests/test-cargo-bsan/run_test.py:35
↓ 2 callers
Function
check_ref
(x: &())
tests/miri-tests/pass/strange_references.rs:10
↓ 2 callers
Method
clippy
(&self, env: &mut BsanEnv, args: &[String])
bsan-script/src/commands.rs:518
↓ 2 callers
Function
command_output
(cmd: &mut Command)
cargo-bsan/src/llvm.rs:118
↓ 2 callers
Method
compatible_with_protector
Ensure that the current internal state can exist at the same time as a protector. In practice this only eliminates `ReservedIM` that is never used in
bsan-rt/src/tree_borrows/tree/tests.rs:25
↓ 2 callers
Method
create_alloc_info
(&self, info: AllocInfo)
bsan-rt/src/global.rs:118
↓ 2 callers
Method
decrement
Decrements the reference count. Returns `true` if the count reached zero.
bsan-rt/src/tree_borrows/refcount.rs:43
↓ 2 callers
Method
decrement_nonatomic
Decrements the reference count **without** atomic synchronization, returning `true` if the count reached zero.
bsan-rt/src/tree_borrows/refcount.rs:70
↓ 2 callers
Method
destroy_alloc_info
(&self, ptr: NonNull<AllocInfo>)
bsan-rt/src/global.rs:122
↓ 2 callers
Function
do_something
(_: u8)
tests/miri-tests/fail/aliasing/tree_borrows/repeated_foreign_read_lazy_conflicted.rs:6
↓ 2 callers
Function
drop_in_place_with_terminator
(ptr: *mut i32)
tests/miri-tests/pass/drop_type_without_drop_glue.rs:8
↓ 2 callers
Function
dummy
(_: &str)
tests/miri-tests/pass/issues/issue-91636.rs:17
↓ 2 callers
Method
end_protector
Remove the protector. This does not perform the implicit read on function exit because `LocStateProt` does not have enough context to apply its effect
bsan-rt/src/tree_borrows/tree/tests.rs:399
↓ 2 callers
Method
ensure_init
Forces the tree into the `Init` state, constructing the underlying `Tree` if needed.
bsan-rt/src/tree_borrows/tree.rs:1038
↓ 2 callers
Method
ensure_no_stronger_than
During retags, the SIFA needs to be weakened to account for children with weaker SIFAs being inserted. Thus, this method is called from the bottom up
bsan-rt/src/tree_borrows/foreign_access_skipping.rs:92
↓ 2 callers
Function
env_or_host
(key: &str, binary: &str)
cargo-bsan/src/util.rs:201
↓ 2 callers
Function
example
Ensure that we do not just pick the topmost possible item on int2ptr casts.
tests/miri-tests/pass/both_borrows/int-to-ptr.rs:18
↓ 2 callers
Function
expect_env
(var: &str)
tests/ui.rs:308
↓ 2 callers
Function
expect_env
(key: &str)
cargo-bsan/src/util.rs:189
↓ 2 callers
Method
extend
Format events from `new_history` into those recorded by `self`.
bsan-rt/src/tree_borrows/diagnostics.rs:136
↓ 2 callers
Method
find_offset
Finds the index containing the given offset.
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:42
↓ 2 callers
Function
foo
(x: &Cell<i32>)
tests/miri-tests/pass/tree_borrows/cell-lazy-write-to-surrounding.rs:6
↓ 2 callers
Function
foo
Copied directly from fail/stacked_borrows/pass_invalid_mut.rs Version that fails TB: fail/tree_borrows/pass_invalid_mut.rs
tests/miri-tests/pass/tree_borrows/sb_fails.rs:36
↓ 2 callers
Method
format_symbol_standalone
(&mut self, symbol: Symbol)
bsan-rt/src/errors.rs:88
↓ 2 callers
Method
getFrameHeaderTop
bsan-pass/BorrowSanitizer.cpp:926
↓ 2 callers
Function
get_a_ptr
()
tests/miri-tests/pass/tls/tls_static.rs:28
↓ 2 callers
Function
get_version_info
()
tests/ui.rs:327
↓ 2 callers
Function
getpid
()
tests/miri-tests/pass/getpid.rs:5
↓ 2 callers
Method
go_upwards_from_accessed
Returns the root of this tree.
bsan-rt/src/tree_borrows/tree_visitor.rs:91
↓ 2 callers
Method
handle
(&self)
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:90
↓ 2 callers
Function
helper
(mut data: Vec<u8>, raw_pointer: *mut Vec<u8>)
tests/miri-tests/pass/move-data-across-await-point.rs:14
↓ 2 callers
Method
host
(env: &EnvConfig)
cargo-bsan/src/util.rs:237
↓ 2 callers
Function
hyperfine_mean
Run hyperfine on a single command and return its mean wall time in seconds. Aborts on failure
bsan-script/etc/bench.py:261
↓ 2 callers
Function
id
(x: T)
tests/miri-tests/pass/arrays.rs:66
↓ 2 callers
Method
id
(self)
tests/miri-tests/pass/validation_lifetime_resolution.rs:11
↓ 2 callers
Method
increment_nonatomic
Increments the reference count **without** atomic synchronization, returning `true` if the count transitioned from zero to one.
bsan-rt/src/tree_borrows/refcount.rs:58
↓ 2 callers
Method
increment_used
(&self)
bsan-rt/src/memory/heap.rs:179
↓ 2 callers
Function
inner
(rc: &RefCell<i32>, aliasing: &mut i32)
tests/miri-tests/pass/both_borrows/interior_mutability.rs:24
↓ 2 callers
Method
install
(&self, env: &mut BsanEnv, args: &[String])
bsan-script/src/commands.rs:483
↓ 2 callers
Method
is_concrete
(&self)
bsan-rt/src/lib.rs:172
↓ 2 callers
Method
is_local
Returns true if this access is local.
bsan-rt/src/tree_borrows/foreign_access_skipping.rs:61
↓ 2 callers
Method
is_noop
(self)
bsan-rt/src/tree_borrows/perms.rs:452
↓ 2 callers
Function
is_running_on_ci
()
bsan-script/src/utils.rs:25
↓ 2 callers
Function
libc_failed
(name: &str, exit_code: libc::c_int)
bsan-rt/src/memory/mod.rs:143
↓ 2 callers
Method
llvm_cmake
( &self, path: &Path, out_dir: &Path, include_dirs: &[PathBuf], )
bsan-script/src/env.rs:401
↓ 2 callers
Function
memcpy
(to: *mut T, from: *const T)
tests/miri-tests/pass/provenance_tests.rs:53
↓ 2 callers
Method
merge_adjacent_thorough
Remove all adjacent duplicates
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:228
↓ 2 callers
Method
needsBoundaryValidation
bsan-pass/BorrowSanitizer.cpp:420
↓ 2 callers
Function
no_valid_exposed_references_error
Cannot access this allocation with wildcard provenance, as there are no valid exposed references for this access kind.
bsan-rt/src/tree_borrows/diagnostics.rs:403
↓ 2 callers
Method
opt_level
(&self)
bsan-script/src/env.rs:56
↓ 2 callers
Function
p
(x: isize, y: isize)
tests/miri-tests/pass/binops.rs:60
↓ 2 callers
Function
par_for
(iter: I, f: F)
tests/miri-tests/pass/send-is-not-static-par-for.rs:6
↓ 2 callers
Method
parent_header
(&self, ptr: NonNull<T>)
bsan-rt/src/memory/heap.rs:98
↓ 2 callers
Function
parse_env_count
(var: &str)
tests/ui.rs:319
↓ 2 callers
Method
patch
bsan-pass/BorrowSanitizer.cpp:836
↓ 2 callers
Function
path_from_env
(var: &str)
tests/ui.rs:312
↓ 2 callers
Method
perform_access
Apply the transition to the inner PermissionPriv.
bsan-rt/src/tree_borrows/perms.rs:367
↓ 2 callers
Method
perform_access_no_fluff
( mut self, access_kind: AccessKind, rel_pos: AccessRelatedness, protected: bo
bsan-rt/src/tree_borrows/tree.rs:174
↓ 2 callers
Method
perform_transition
Performs an access on this index and updates node, perm and wildcard_state to reflect the transition.
bsan-rt/src/tree_borrows/tree.rs:102
↓ 2 callers
Method
poll
(mut self: Pin<&mut Self>, _cx: &mut Context<'_>)
tests/miri-tests/pass/future-self-referential.rs:23
↓ 2 callers
Method
print
(&self)
tests/miri-tests/pass/issues/issue-3794.rs:13
↓ 2 callers
Function
print_errors
(result: FixResult)
tests/ui.rs:343
↓ 2 callers
Function
print_tree
(dir: &Path, prefix: &str)
bsan-script/src/stats.rs:23
↓ 2 callers
Method
profile
(&self)
bsan-script/src/env.rs:77
↓ 2 callers
Function
protect
(arg: &mut u32)
tests/miri-tests/pass/tree_borrows/wildcard/wildcard.rs:113
↓ 2 callers
Method
protected_tags_mut
(&'a self)
bsan-rt/src/global.rs:130
↓ 2 callers
Method
pushFrameHeaderSlot
Extends the frame header down by one provenance slot
bsan-pass/BorrowSanitizer.cpp:962
↓ 2 callers
Method
range
# Safety This instance of `AllocInfo` must represent a valid, non-freed allocation. Otherwise, the contents of its base address will be initialized wi
bsan-rt/src/borrow_tracker.rs:28
↓ 2 callers
Method
retag_permissions
Return the permission that `y` starts as, and the permission that we will retag `x` with. This does not yet include a possible read-on-reborrow throug
bsan-rt/src/tree_borrows/tree/tests.rs:700
↓ 2 callers
Method
retainIf
bsan-rt/llvm-wrapper/bsan_set.h:45
↓ 2 callers
Function
run
Run a command, raising CalledProcessError on non-zero exit. The command inherits the current environment.
bsan-script/etc/bench.py:95
↓ 2 callers
Function
run_fut
(fut: impl Future<Output = T>)
tests/miri-tests/pass/async-fn.rs:77
↓ 2 callers
Function
run_fut
(fut: impl Future<Output = T>)
tests/miri-tests/pass/future-self-referential.rs:79
← previous
next →
201–300 of 2,093, ranked by callers