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
↓ 5 callers
Function
foo3
(x: &Fat<Fat<[isize]>>)
tests/miri-tests/pass/dst-struct.rs:28
↓ 5 callers
Method
forEach
bsan-rt/llvm-wrapper/bsan_set.h:38
↓ 5 callers
Method
get
()
bsan-rt/src/memory/mod.rs:81
↓ 5 callers
Method
in_mode
(&mut self, m: Mode, f: F)
bsan-script/src/env.rs:222
↓ 5 callers
Method
is_foreign
Check that access is either Ancestor or Distant, i.e. not a transitive child (initial pointer included).
bsan-rt/src/tree_borrows/tree.rs:1062
↓ 5 callers
Method
next
(ptr: *mut AllocInfo)
bsan-rt/src/memory/mod.rs:103
↓ 5 callers
Function
protect
(arg: &mut u32)
tests/miri-tests/pass/tree_borrows/wildcard/reborrow.rs:163
↓ 5 callers
Function
run_capture
Run a command and return stdout as a string. The command inherits the current environment.
bsan-script/etc/bench.py:105
↓ 5 callers
Method
sysroot_binary
(&self, binary_name: &str)
bsan-script/src/env.rs:289
↓ 4 callers
Method
AcquireProvenance
Adds a provenance value with a zero reference count to this thread's zero count table. Increments the "busy" flag to stop the garbage collector from i
bsan-rt/llvm-wrapper/bsan_thread.h:84
↓ 4 callers
Function
GetRetValSlot
Returns a pointer to the slot on the shadow stack at the given index. The shadow stack grows downward, so we subtract by the given index plus one to a
bsan-rt/llvm-wrapper/bsan.cpp:109
↓ 4 callers
Function
NewBorTag
Allocates a new borrow tag.
bsan-rt/llvm-wrapper/bsan.cpp:74
↓ 4 callers
Function
__bsan_alloc
bsan-rt/llvm-wrapper/bsan.cpp:442
↓ 4 callers
Function
call
(f: &impl async Fn() -> T)
tests/miri-tests/pass/async-closure-captures.rs:26
↓ 4 callers
Method
clear
bsan-rt/llvm-wrapper/bsan_set.cpp:79
↓ 4 callers
Method
contains_key
Whether this key has an associated index or not.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:120
↓ 4 callers
Function
debug_cmd
Debug-print a command that is going to be run.
cargo-bsan/src/util.rs:59
↓ 4 callers
Method
entry
Get a wrapper around a mutable access to the value corresponding to `idx`.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:252
↓ 4 callers
Function
execute
(cmd, env=None)
tests/test-cargo-bsan/run_test.py:80
↓ 4 callers
Function
f
(_x: *const i32)
tests/miri-tests/fail/baseline/tail_calls/dangling-local-var.rs:9
↓ 4 callers
Function
flags
bsan-rt/llvm-wrapper/bsan_flags.h:28
↓ 4 callers
Method
foo
(&self)
tests/miri-tests/pass/dst-raw.rs:14
↓ 4 callers
Function
force_fnonce
(f: impl async FnOnce() -> T)
tests/miri-tests/pass/async-closure-captures.rs:93
↓ 4 callers
Function
get_arg_flag_value
Gets the value of a `--flag`.
cargo-bsan/src/arg.rs:131
↓ 4 callers
Function
get_arg_flag_values
Gets the values of a `--flag`.
cargo-bsan/src/arg.rs:126
↓ 4 callers
Method
handle_error
(&self, ub_info: UBInfo, pc: Span)
bsan-rt/src/global.rs:200
↓ 4 callers
Method
increment
Increments the reference count. Returns `true` if the count transitioned from zero to one.
bsan-rt/src/tree_borrows/refcount.rs:34
↓ 4 callers
Method
iter
Provides read-only iteration over everything in the given range. This does not* split items if they overlap with the edges. Do not use this to mutate
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:67
↓ 4 callers
Method
perform_access
Apply the effect of an access to one location, including - applying `Permission::perform_access` to the inner `Permission`, - emitting protector UB if
bsan-rt/src/tree_borrows/tree.rs:139
↓ 4 callers
Method
perform_access
(&self, kind: AccessKind, rel: AccessRelatedness)
bsan-rt/src/tree_borrows/tree/tests.rs:390
↓ 4 callers
Method
perform_test_access
(self, acc: &TestAccess)
bsan-rt/src/tree_borrows/tree/tests.rs:440
↓ 4 callers
Function
print_diff
(ptr: *mut i32, msg: &str)
tests/pass/analyze_retags.rs:7
↓ 4 callers
Method
read_if_accessed
Perform a read on the given pointer if its state is `accessed`. Must be called just after reborrowing a pointer, and just after removing a protector.
bsan-rt/src/tree_borrows/tree/tests.rs:450
↓ 4 callers
Method
remove_useless_node
Properly removes a node. The node to be removed should not otherwise be usable. It also should have no children, but this is not checked, so that node
bsan-rt/src/tree_borrows/tree.rs:537
↓ 4 callers
Function
root_dir
()
bsan-script/src/utils.rs:64
↓ 4 callers
Function
test
(me: MyEnum)
tests/miri-tests/pass/enums.rs:9
↓ 4 callers
Function
test_ptr
(ptr: *mut ())
tests/miri-tests/pass/zero-sized-accesses-and-offsets.rs:20
↓ 4 callers
Method
update_exposure
Update the tracking information of a tree, to reflect that the node specified by `id` is now exposed with `new_exposed_as` permission. Propagates the
bsan-rt/src/tree_borrows/wildcard.rs:152
↓ 3 callers
Function
BsanAllocateMeta
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:159
↓ 3 callers
Function
ClearShadow
bsan-rt/llvm-wrapper/bsan_shadow.cpp:310
↓ 3 callers
Function
ClearSlot
Clears the provenance from the given stack slot.
bsan-rt/llvm-wrapper/bsan.cpp:116
↓ 3 callers
Function
GetAllocatorCache
bsan-rt/llvm-wrapper/bsan_allocator.cpp:67
↓ 3 callers
Method
Init
bsan-rt/llvm-wrapper/bsan_thread.cpp:21
↓ 3 callers
Function
IsRetag
Indicates that this is a call to one of BorrowSanitizer's retag intrinsic functions.
bsan-pass/Retag.cpp:7
↓ 3 callers
Function
UpdateShadowSlot
bsan-rt/llvm-wrapper/bsan_shadow.cpp:234
↓ 3 callers
Function
__bsan_rc_dec
bsan-rt/llvm-wrapper/bsan.cpp:402
↓ 3 callers
Method
access_type
Determines whether a given access on `range` overlaps with an existing allocation
bsan-rt/src/tree_borrows/data_structures/range_object_map.rs:62
↓ 3 callers
Method
addIncoming
bsan-pass/BorrowSanitizer.cpp:683
↓ 3 callers
Function
addr_is_type
bsan-rt/llvm-wrapper/bsan_shadow.h:87
↓ 3 callers
Method
alloc
(&self, elem: T)
bsan-rt/src/memory/heap.rs:56
↓ 3 callers
Method
artifact
(&self, env: &BsanEnv)
bsan-script/src/commands.rs:466
↓ 3 callers
Function
assert_host_bin
(sysroot: &Sysroot, binary: &str)
cargo-bsan/src/util.rs:227
↓ 3 callers
Function
assert_rustc_llvm_version
(binary: &PathBuf, expected: &LlvmVersion)
cargo-bsan/src/llvm.rs:92
↓ 3 callers
Function
b
()
tests/miri-tests/pass/union.rs:23
↓ 3 callers
Method
build
Produce a UB error.
bsan-rt/src/tree_borrows/diagnostics.rs:324
↓ 3 callers
Method
cargo_cmd_base
(&self, cmd: &str)
bsan-script/src/env.rs:259
↓ 3 callers
Method
contains_tag
(&self, tag: BorTag)
bsan-rt/src/tree_borrows/tree.rs:1119
↓ 3 callers
Method
copy_to_sysroot_libdir
(&self, file: &Path)
bsan-script/src/env.rs:244
↓ 3 callers
Method
data
bsan-rt/llvm-wrapper/bsan_set.h:35
↓ 3 callers
Method
destroy
bsan-rt/llvm-wrapper/bsan_set.cpp:52
↓ 3 callers
Function
empty
@run:0
tests/miri-tests/pass/trivial.rs:2
↓ 3 callers
Function
exec
Execute the `Command`, where possible by replacing the current process with a new process described by the `Command`. Then exit this process with the
cargo-bsan/src/util.rs:66
↓ 3 callers
Method
exec
( self, quiet: bool, skip: bool, toolchain_dir: Option<PathBuf>, insta
bsan-script/src/commands.rs:17
↓ 3 callers
Function
f
(x: &UnsafeCell<i32>)
tests/miri-tests/pass/both_borrows/interior_mutability.rs:86
↓ 3 callers
Method
find_offset
Finds the position of the allocation containing the given offset. If the offset is not in an existing allocation, then returns Err containing the posi
bsan-rt/src/tree_borrows/data_structures/range_object_map.rs:44
↓ 3 callers
Method
finish_foreign_accesses
(&mut self, this: &mut TreeVisitor<'_, T>)
bsan-rt/src/tree_borrows/tree_visitor.rs:144
↓ 3 callers
Method
for_matirx_entry
(&self, matrix: u32, mut f: impl FnMut(i32, i32, D))
tests/fail-dep/mirilli/klu-rs.rs:28
↓ 3 callers
Method
format_symbol
(&mut self, symbol: Symbol, indentation: usize)
bsan-rt/src/errors.rs:93
↓ 3 callers
Method
getOrInitFrameHeaderBottom
bsan-pass/BorrowSanitizer.cpp:954
↓ 3 callers
Method
getOrInitFrameHeaderTop
bsan-pass/BorrowSanitizer.cpp:933
↓ 3 callers
Function
getOrInsertTLSGlobal
bsan-pass/BorrowSanitizer.cpp:94
↓ 3 callers
Function
helper
(mut ap: VaList)
tests/miri-tests/should-pass/c-variadic.rs:23
↓ 3 callers
Function
id
(t: T)
tests/miri-tests/pass/calls.rs:17
↓ 3 callers
Method
into_array
(self)
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:58
↓ 3 callers
Method
isProtected
bsan-pass/Retag.h:27
↓ 3 callers
Method
line_length
(&self)
bsan-rt/src/sanitizer_common.rs:24
↓ 3 callers
Method
or_insert
Insert in the map and get the value.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:260
↓ 3 callers
Method
perform_test_event
(self, evt: &TestEvent<RetX, RetY>)
bsan-rt/src/tree_borrows/tree/tests.rs:488
↓ 3 callers
Function
phase_rustc
(args: impl Iterator<Item = String>, phase: RustcPhase)
cargo-bsan/src/phases.rs:213
↓ 3 callers
Method
populate_env
(&self, cmd: &mut Command)
cargo-bsan/src/setup.rs:44
↓ 3 callers
Method
populate_env
(&self, cmd: &mut Command)
cargo-bsan/src/llvm.rs:53
↓ 3 callers
Method
print_as_access
(self, is_foreign: bool)
bsan-rt/src/tree_borrows/diagnostics.rs:40
↓ 3 callers
Function
prompt_user
Prompt a user for a answer, looping until they enter an accepted input or nothing
bsan-script/src/utils.rs:44
↓ 3 callers
Method
propagate_at
( &mut self, this: &mut TreeVisitor<'_, T>, idx: UniIndex, rel_pos: AccessRela
bsan-rt/src/tree_borrows/tree_visitor.rs:81
↓ 3 callers
Method
remove
Return whatever index this key was using to the deassigned pool. Note: calling this function can be dangerous. If the index still exists somewhere in
bsan-rt/src/tree_borrows/data_structures/unimap.rs:179
↓ 3 callers
Method
removing_exposed_provenance
Removes a provenance value that has been exposed for the given range. If `strict`, then exposed provenance will only be removed if is matches Otherwis
bsan-rt/src/global.rs:168
↓ 3 callers
Method
size
(&self)
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:36
↓ 3 callers
Method
strongest_idempotent_foreign_access
See `foreign_access_skipping.rs`. Computes the SIFA of a permission.
bsan-rt/src/tree_borrows/perms.rs:144
↓ 3 callers
Method
target_binary
(&self, binary_name: &str)
bsan-script/src/env.rs:277
↓ 3 callers
Function
test
(x: T)
tests/miri-tests/pass/slices.rs:60
↓ 3 callers
Function
test_mut
(x: T)
tests/miri-tests/pass/slices.rs:115
↓ 3 callers
Method
tree_opt
(self)
bsan-rt/src/borrow_tracker.rs:44
↓ 3 callers
Function
version_meta
(sh: &Shell, toolchain: &str)
bsan-script/src/utils.rs:93
↓ 2 callers
Function
AllocationSize
bsan-rt/llvm-wrapper/bsan_allocator.cpp:176
↓ 2 callers
Function
CopyShadow
bsan-rt/llvm-wrapper/bsan_shadow.cpp:260
↓ 2 callers
Function
InitShadow
bsan-rt/llvm-wrapper/bsan_shadow.cpp:81
↓ 2 callers
Function
InitializeDefaultFlags
bsan-rt/llvm-wrapper/bsan_flags.cpp:48
↓ 2 callers
Function
ProcessFlags
Validate flags and report incompatible configurations
bsan-rt/llvm-wrapper/bsan_flags.cpp:88
↓ 2 callers
Method
RequestGC
bsan-rt/llvm-wrapper/bsan_global.cpp:99
↓ 2 callers
Function
SetCurrentThread
bsan-rt/llvm-wrapper/bsan_linux.cpp:14
← previous
next →
101–200 of 2,093, ranked by callers