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
run_tests
(env: &mut BsanEnv, config: TestConfig)
bsan-script/src/commands.rs:252
↓ 2 callers
Function
rustc_path
()
cargo-bsan/src/util.rs:207
↓ 2 callers
Method
say_hello
(&self, _: &usize)
tests/miri-tests/pass/dyn-upcast.rs:497
↓ 2 callers
Function
setup_at_exit_wrapper
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:344
↓ 2 callers
Method
shouldInstrumentAlloca
We only instrument allocations that have a non-zero size.
bsan-pass/BorrowSanitizer.cpp:446
↓ 2 callers
Method
shouldTrustFunction
bsan-pass/BorrowSanitizer.cpp:426
↓ 2 callers
Method
skip_if_known_noop
Tree traversal optimizations. See `foreign_access_skipping.rs`. This checks if such a foreign access can be skipped.
bsan-rt/src/tree_borrows/tree.rs:188
↓ 2 callers
Method
split_index
Splits the element situated at the given `index`, such that the 2nd one starts at offset `split_offset`. Do nothing if the element already starts ther
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:107
↓ 2 callers
Method
stack_bottom
Returns the bottom of the "real" stack associated with this thread.
bsan-rt/llvm-wrapper/bsan_thread.h:42
↓ 2 callers
Method
stack_top
Returns the top of the "real" stack associated with this thread.
bsan-rt/llvm-wrapper/bsan_thread.h:39
↓ 2 callers
Function
switch
(src: u32, tgt: u32)
tests/miri-tests/pass/function_calls/tail_call.rs:24
↓ 2 callers
Function
take
(h: Handler, f: Box<dyn Fn()>)
tests/miri-tests/pass/issues/issue-30530.rs:22
↓ 2 callers
Method
target
(config: &EnvConfig)
cargo-bsan/src/util.rs:245
↓ 2 callers
Function
test
(_x: Option<Box<F>>)
tests/miri-tests/pass/regions-lifetime-nonfree-late-bound.rs:18
↓ 2 callers
Method
test
(&self, env: &mut BsanEnv, args: &[String])
bsan-script/src/commands.rs:514
↓ 2 callers
Function
thread_local_ptr
(key: &'static std::thread::LocalKey<T>)
tests/miri-tests/pass/static_align.rs:56
↓ 2 callers
Method
to_relatedness
(self)
bsan-rt/src/tree_borrows/wildcard.rs:46
↓ 2 callers
Function
tracked
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:15
↓ 2 callers
Method
traverse_this_parents_children_other
Applies `f_propagate` to every vertex of the tree in a piecewise bottom-up way: First, visit all ancestors of `start_idx` (starting with `start_idx` i
bsan-rt/src/tree_borrows/tree_visitor.rs:224
↓ 2 callers
Function
two_phase3
(b: bool)
tests/miri-tests/pass/both_borrows/2phase.rs:21
↓ 2 callers
Function
v1
Make sure to involve `Box` in allocating these, as that's where `noalias` may come from.
tests/miri-tests/pass/box-custom-alloc-aliasing.rs:105
↓ 2 callers
Function
variadic
(_: ...)
tests/miri-tests/should-pass/c-variadic.rs:7
↓ 2 callers
Method
verify_wildcard_consistency
Checks that the wildcard tracking data structure is internally consistent and has the correct `exposed_as` values.
bsan-rt/src/tree_borrows/wildcard.rs:251
↓ 2 callers
Method
wait
(&self)
tests/miri-tests/pass/tls/tls_macro_drop.rs:237
↓ 1 callers
Function
AllocationBegin
bsan-rt/llvm-wrapper/bsan_allocator.cpp:162
↓ 1 callers
Function
AllocationSizeFast
bsan-rt/llvm-wrapper/bsan_allocator.cpp:186
↓ 1 callers
Function
BsanAllocateMetaIntoHeap
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:178
↓ 1 callers
Function
BsanCalloc
bsan-rt/llvm-wrapper/bsan_allocator.cpp:152
↓ 1 callers
Function
BsanReallocate
bsan-rt/llvm-wrapper/bsan_allocator.cpp:133
↓ 1 callers
Function
CheckMemoryLayout
TODO: CheckMemoryLayout is based on msan. Consider refactoring these into a shared implementation.
bsan-rt/llvm-wrapper/bsan_shadow.cpp:11
↓ 1 callers
Method
DeregisterThread
bsan-rt/llvm-wrapper/bsan_thread.cpp:64
↓ 1 callers
Method
Destroy
bsan-rt/llvm-wrapper/bsan_thread.cpp:33
↓ 1 callers
Function
DisplayHelpMessages
bsan-rt/llvm-wrapper/bsan_flags.cpp:38
↓ 1 callers
Function
InitShadowWithReExec
bsan-rt/llvm-wrapper/bsan_shadow.cpp:176
↓ 1 callers
Function
InitializeFlags
bsan-rt/llvm-wrapper/bsan_flags.cpp:93
↓ 1 callers
Function
InitializeInterceptors
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:502
↓ 1 callers
Function
InitializeTSD
bsan-rt/llvm-wrapper/bsan_linux.cpp:37
↓ 1 callers
Function
IsFnEntryRetag
Indicates that this is a call to one of BorrowSanitizer's retag intrinsic functions, and that this represents a function-entry retag, which creates a
bsan-pass/Retag.cpp:17
↓ 1 callers
Function
MaybeRequestGC
Increments the retag counter and asks the global context to run the garbage collector once every `retags_per_gc` retags. Concurrent requests across th
bsan-rt/llvm-wrapper/bsan.cpp:84
↓ 1 callers
Function
MaybeUseBsanDefaultOptionsCompileDefinition
bsan-rt/llvm-wrapper/bsan_flags.cpp:17
↓ 1 callers
Function
MoveShadow
bsan-rt/llvm-wrapper/bsan_shadow.cpp:279
↓ 1 callers
Function
ProtectMemoryRange
bsan-rt/llvm-wrapper/bsan_shadow.cpp:59
↓ 1 callers
Function
RegisterBsanFlags
bsan-rt/llvm-wrapper/bsan_flags.cpp:31
↓ 1 callers
Method
RegisterThread
bsan-rt/llvm-wrapper/bsan_thread.cpp:57
↓ 1 callers
Function
ReportUnavailableMemoryRegions
bsan-rt/llvm-wrapper/bsan_shadow.cpp:151
↓ 1 callers
Method
SetDefaults
bsan-rt/llvm-wrapper/bsan_flags.cpp:25
↓ 1 callers
Method
Start
bsan-rt/llvm-wrapper/bsan_thread.cpp:42
↓ 1 callers
Function
WriteShadow
bsan-rt/llvm-wrapper/bsan_shadow.cpp:333
↓ 1 callers
Method
ZctBusy
bsan-rt/llvm-wrapper/bsan_thread.h:100
↓ 1 callers
Function
__bsan_alloc_impl
( base_addr: *mut c_void, size: Size, bor_tag: BorTag, pc: Span, )
bsan-rt/src/lib.rs:430
↓ 1 callers
Function
__bsan_alloc_stack_impl
( base_addr: *mut c_void, size: Size, bor_tag: BorTag, alloc_info: NonNull<AllocInfo>, pc:
bsan-rt/src/lib.rs:527
↓ 1 callers
Function
__bsan_crt_free
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:99
↓ 1 callers
Function
__bsan_crt_malloc
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:78
↓ 1 callers
Function
__bsan_debug_print
bsan-rt/llvm-wrapper/bsan.cpp:521
↓ 1 callers
Function
__bsan_disable_node_debug_info
bsan-rt/llvm-wrapper/bsan_flags.cpp:123
↓ 1 callers
Function
__bsan_expose_prov_impl
(bor_tag: BorTag, alloc_info: *mut AllocInfo)
bsan-rt/src/lib.rs:547
↓ 1 callers
Function
__bsan_free_buffer
Free the buffer allocated by __bsan_read_file
bsan-rt/llvm-wrapper/bsan.cpp:325
↓ 1 callers
Function
__bsan_internal_init
bsan-rt/llvm-wrapper/bsan.cpp:192
↓ 1 callers
Function
__bsan_print
bsan-rt/llvm-wrapper/bsan.cpp:518
↓ 1 callers
Function
__bsan_print_borrow_state
bsan-rt/llvm-wrapper/bsan.cpp:527
↓ 1 callers
Function
__bsan_print_diff
bsan-rt/llvm-wrapper/bsan.cpp:554
↓ 1 callers
Function
__bsan_protector_end_impl
(bor_tag: BorTag, alloc_info: *mut AllocInfo, pc: Span)
bsan-rt/src/lib.rs:381
↓ 1 callers
Function
__bsan_prune
( alloc_info: NonNull<AllocInfo>, bor_tags: *const BorTag, len: usize, )
bsan-rt/src/lib.rs:557
↓ 1 callers
Function
__bsan_rc_dec_impl
( bor_tag: BorTag, alloc_info: *mut AllocInfo, )
bsan-rt/src/lib.rs:498
↓ 1 callers
Function
__bsan_rc_inc_impl
( bor_tag: BorTag, alloc_info: *mut AllocInfo, )
bsan-rt/src/lib.rs:480
↓ 1 callers
Function
__bsan_read_file
Read the entire file at path into the buffer. Returns the number of bytes read on success, 0 otherwise.
bsan-rt/llvm-wrapper/bsan.cpp:304
↓ 1 callers
Function
__bsan_read_impl
( ptr: *mut c_void, access_size: Size, bor_tag: BorTag, alloc_info: *mut AllocInfo, pc: Sp
bsan-rt/src/lib.rs:394
↓ 1 callers
Function
__bsan_reserve_stack_slot_impl
()
bsan-rt/src/lib.rs:513
↓ 1 callers
Function
__bsan_retag_impl
( ptr: *mut c_void, size: Size, flags: RetagFlags, im_data: Option<NonNull<[Size; 2]>>, im
bsan-rt/src/lib.rs:341
↓ 1 callers
Function
__bsan_snapshot
bsan-rt/llvm-wrapper/bsan.cpp:545
↓ 1 callers
Function
__bsan_symbolize_pc
Symbolize a single PC into file:line:column, writing the file path into the provided buffer. Returns 1 on success, 0 otherwise.
bsan-rt/llvm-wrapper/bsan.cpp:276
↓ 1 callers
Function
__bsan_tree_size
bsan-rt/llvm-wrapper/bsan.cpp:536
↓ 1 callers
Function
__bsan_write_impl
( ptr: *mut c_void, access_size: Size, bor_tag: BorTag, alloc_info: *mut AllocInfo, pc: Sp
bsan-rt/src/lib.rs:412
↓ 1 callers
Function
__sanitizer_get_allocated_begin
bsan-rt/llvm-wrapper/bsan_allocator.cpp:301
↓ 1 callers
Function
__sanitizer_get_allocated_size
bsan-rt/llvm-wrapper/bsan_allocator.cpp:305
↓ 1 callers
Function
a
()
tests/miri-tests/pass/union.rs:9
↓ 1 callers
Function
access_after_sub_1
(x: &mut u8, orig_ptr: *mut u8)
tests/miri-tests/fail/aliasing/tree_borrows/repeated_foreign_read_lazy_conflicted.rs:8
↓ 1 callers
Method
access_relatedness
Returns the relatedness of a wildcard access to a node. This function only considers a single subtree. If the current subtree does not contain any va
bsan-rt/src/tree_borrows/wildcard.rs:87
↓ 1 callers
Function
active_libdir
Gets the libdir of the active toolchain
bsan-script/src/utils.rs:86
↓ 1 callers
Method
add
(self, other: Size)
bsan-rt/src/helpers.rs:63
↓ 1 callers
Method
add_protector
(&mut self, tag: BorTag, kind: ProtectorKind)
bsan-rt/src/global.rs:31
↓ 1 callers
Function
advance_with_extra_steps
(src: u32, tgt: u32)
tests/miri-tests/pass/function_calls/tail_call.rs:36
↓ 1 callers
Function
aliasing_frz_and_shr
()
tests/miri-tests/pass/both_borrows/interior_mutability.rs:46
↓ 1 callers
Function
aliasing_mut_and_shr
()
tests/miri-tests/pass/both_borrows/interior_mutability.rs:23
↓ 1 callers
Function
aliasing_read_only_mutable_refs
Tree Borrows has no issue with several mutable references existing at the same time, as long as they are used only immutably. I.e. multiple Reserved c
tests/miri-tests/pass/tree_borrows/tree-borrows.rs:31
↓ 1 callers
Method
alloc
(&self, layout: Layout)
bsan-rt/src/global.rs:239
↓ 1 callers
Method
alloc
Allocates the requested number of slots, returning the slot count offset.
bsan-pass/BorrowSanitizer.cpp:828
↓ 1 callers
Method
allocStackSlot
Allocates one or more shadow stack slots from the requested section.
bsan-pass/BorrowSanitizer.cpp:983
↓ 1 callers
Method
allocateFnEntryRegion
bsan-pass/BorrowSanitizer.cpp:910
↓ 1 callers
Function
allocate_reallocate
()
tests/miri-tests/pass/heap.rs:6
↓ 1 callers
Method
allows
Weather this access kind is allowed at this level.
bsan-rt/src/tree_borrows/wildcard.rs:25
↓ 1 callers
Method
applied
Extract result of a transition (checks that the starting point matches).
bsan-rt/src/tree_borrows/perms.rs:457
↓ 1 callers
Function
arc
()
tests/miri-tests/pass/rc.rs:48
↓ 1 callers
Function
array_casts
When casting an array reference to a raw element ptr, that should cover the whole array.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:187
↓ 1 callers
Method
as_mut_ptr_heap
(&mut self)
tests/miri-tests/pass/both_borrows/smallvec.rs:32
↓ 1 callers
Method
as_mut_ptr_inline
(&mut self)
tests/miri-tests/pass/both_borrows/smallvec.rs:28
↓ 1 callers
Function
ask_to_run
(mut cmd: Command, ask: bool, text: &str)
cargo-bsan/src/util.rs:103
↓ 1 callers
Function
assign_overlapping
()
tests/miri-tests/pass/ptr_raw.rs:27
↓ 1 callers
Function
async_main
()
tests/miri-tests/pass/async-closure-captures.rs:38
↓ 1 callers
Function
atomic_all_ops
Make sure we can handle all the intrinsics
tests/miri-tests/pass/atomic.rs:42
← previous
next →
301–400 of 2,093, ranked by callers