MCPcopy Create free account

hub / github.com/BorrowSanitizer/bsan / functions

Functions2,093 in github.com/BorrowSanitizer/bsan

↓ 1 callersFunctionsplit_at_mut
(self_: &mut [T], mid: usize)
tests/miri-tests/fail/aliasing/both_borrows/buggy_split_at_mut.rs:7
↓ 1 callersFunctionstdlib_pointers
()
tests/miri-tests/pass/dyn-arbitrary-self.rs:24
↓ 1 callersFunctionstr_indexing
()
tests/miri-tests/pass/strings.rs:24
↓ 1 callersFunctionstring_as_mut_ptr
()
tests/miri-tests/pass/tree_borrows/tree-borrows.rs:41
↓ 1 callersFunctionstruct_
()
tests/miri-tests/pass/dyn-upcast.rs:218
↓ 1 callersFunctionstuff
(x: &mut u8, y: *mut u8)
tests/miri-tests/fail/aliasing/tree_borrows/outside-range.rs:14
↓ 1 callersFunctionsum
(x: &[i32])
tests/miri-tests/pass/send-is-not-static-par-for.rs:17
↓ 1 callersFunctiont1
()
tests/miri-tests/pass/transmute_ptr.rs:6
↓ 1 callersFunctiont2
()
tests/miri-tests/pass/transmute_ptr.rs:19
↓ 1 callersMethodtake_snapshot
(&self, alloc_id: AllocId, tree: AllocStateImpl)
bsan-rt/src/global.rs:208
↓ 1 callersMethodtarget_dir
(&self, version_meta: &VersionMeta)
cargo-bsan/src/util.rs:268
↓ 1 callersFunctiontest
()
tests/miri-tests/pass/align_repeat_into_packed_field.rs:11
↓ 1 callersFunctiontest
(t: Test2)
tests/miri-tests/pass/packed_struct.rs:30
↓ 1 callersFunctiontest
@run:0
tests/miri-tests/pass/move-arg-2-unique.rs:2
↓ 1 callersFunctiontest
()
tests/miri-tests/pass/both_borrows/int-to-ptr.rs:60
↓ 1 callersFunctiontest
()
tests/miri-tests/pass/issues/issue-94371.rs:5
↓ 1 callersFunctiontest
(mut x: Box<i32>, y: *const i32)
tests/miri-tests/fail/aliasing/both_borrows/box_noalias_violation.rs:5
↓ 1 callersFunctiontest1
()
tests/miri-tests/pass/adjacent-allocs.rs:19
↓ 1 callersFunctiontest1
`Box<T, G>` is a `ScalarPair` where the 2nd component is the allocator.
tests/miri-tests/pass/box-custom-alloc.rs:47
↓ 1 callersFunctiontest1
()
tests/miri-tests/pass/many_shr_bor.rs:13
↓ 1 callersFunctiontest2
()
tests/miri-tests/pass/adjacent-allocs.rs:42
↓ 1 callersFunctiontest2
`Box<T, G>` is an `Aggregate`.
tests/miri-tests/pass/box-custom-alloc.rs:73
↓ 1 callersFunctiontest2
(r: &mut RefCell<i32>)
tests/miri-tests/pass/many_shr_bor.rs:27
↓ 1 callersFunctiontest_align_to
()
tests/miri-tests/pass/align_offset_symbolic.rs:6
↓ 1 callersFunctiontest_all_refs
Gather all references from a mutable iterator and make sure Miri notices if using them is dangerous.
tests/miri-tests/pass/hashmap.rs:9
↓ 1 callersFunctiontest_all_refs
Gather all references from a mutable iterator and make sure Miri notices if using them is dangerous.
tests/miri-tests/pass/linked-list.rs:13
↓ 1 callersFunctiontest_all_refs
(dummy: &mut T, iter: impl Iterator<Item = &'a mut T>)
tests/miri-tests/pass/vecdeque.rs:7
↓ 1 callersFunctiontest_all_refs
Gather all references from a mutable iterator and make sure Miri notices if using them is dangerous.
tests/miri-tests/pass/btreemap.rs:17
↓ 1 callersFunctiontest_arc
()
tests/miri-tests/pass/dyn-upcast.rs:346
↓ 1 callersFunctiontest_basic
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:33
↓ 1 callersFunctiontest_basic
()
tests/miri-tests/pass/packed_struct.rs:8
↓ 1 callersFunctiontest_block_for_one_second
()
tests/miri-tests/excluded/pass/shims/time-with-isolation.rs:34
↓ 1 callersFunctiontest_bool
()
tests/miri-tests/pass/binops.rs:13
↓ 1 callersFunctiontest_box
()
tests/miri-tests/pass/dyn-upcast.rs:270
↓ 1 callersFunctiontest_cargo_bsan_run
()
tests/test-cargo-bsan/run_test.py:145
↓ 1 callersFunctiontest_cargo_bsan_setup
()
tests/test-cargo-bsan/run_test.py:114
↓ 1 callersFunctiontest_cargo_bsan_test
()
tests/test-cargo-bsan/run_test.py:161
↓ 1 callersFunctiontest_class
()
tests/miri-tests/pass/binops.rs:64
↓ 1 callersFunctiontest_closure
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:137
↓ 1 callersFunctiontest_coroutine
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:214
↓ 1 callersFunctiontest_cstr
()
tests/miri-tests/pass/align_offset_symbolic.rs:93
↓ 1 callersFunctiontest_derive
()
tests/miri-tests/pass/packed_struct.rs:125
↓ 1 callersFunctiontest_deterministic
Ensures that we get the same behavior across all targets.
tests/miri-tests/excluded/pass/shims/time-with-isolation.rs:43
↓ 1 callersFunctiontest_drop
()
tests/miri-tests/pass/packed_struct.rs:77
↓ 1 callersFunctiontest_fn_ptr
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:71
↓ 1 callersFunctiontest_for_invalidated_pointers
Regression tests for slice methods in the Rust core library where raw pointers are obtained from mutable references.
tests/miri-tests/pass/slices.rs:198
↓ 1 callersFunctiontest_from_to
Stacked Borrows would not have liked this one because the `as_mut_ptr` reborrow invalidates the earlier pointer obtained from `as_ptr`, but Tree Borro
tests/miri-tests/pass/tree_borrows/copy-nonoverlapping.rs:23
↓ 1 callersFunctiontest_from_utf8
()
tests/miri-tests/pass/align_offset_symbolic.rs:60
↓ 1 callersFunctiontest_idempotency
(mut x: Pin<&mut T>)
tests/miri-tests/pass/async-drop.rs:26
↓ 1 callersFunctiontest_inner_packed
()
tests/miri-tests/pass/packed_struct.rs:98
↓ 1 callersFunctiontest_iter_ref_consistency
()
tests/miri-tests/pass/slices.rs:57
↓ 1 callersFunctiontest_iterator_step_by_nth
()
tests/miri-tests/pass/iter.rs:16
↓ 1 callersMethodtest_klu
(&self)
tests/fail-dep/mirilli/klu-rs.rs:39
↓ 1 callersMethodtest_klu_solve
( &self, matrix: u32, dst: &mut FixedKluMatrix<i32, D>, )
tests/fail-dep/mirilli/klu-rs.rs:48
↓ 1 callersFunctiontest_mutex_stdlib
()
tests/miri-tests/pass/concurrency/sync_singlethread.rs:12
↓ 1 callersFunctiontest_nil
()
tests/miri-tests/pass/binops.rs:4
↓ 1 callersFunctiontest_no_rebuild
(name, cmd, env=None)
tests/test-cargo-bsan/run_test.py:96
↓ 1 callersFunctiontest_offset_from
()
tests/miri-tests/pass/ptr_offset.rs:28
↓ 1 callersFunctiontest_ptr
()
tests/miri-tests/pass/binops.rs:37
↓ 1 callersFunctiontest_rc
()
tests/miri-tests/pass/dyn-upcast.rs:307
↓ 1 callersFunctiontest_rwlock_stdlib
()
tests/miri-tests/pass/concurrency/sync_singlethread.rs:22
↓ 1 callersFunctiontest_sleep
()
tests/miri-tests/excluded/pass/shims/time-with-isolation.rs:4
↓ 1 callersFunctiontest_spin_loop_hint
()
tests/miri-tests/pass/concurrency/sync_singlethread.rs:52
↓ 1 callersFunctiontest_static
()
tests/miri-tests/pass/packed_struct.rs:114
↓ 1 callersFunctiontest_thread_yield_now
()
tests/miri-tests/pass/concurrency/sync_singlethread.rs:58
↓ 1 callersFunctiontest_time_passes
Ensure that time passes even if we don't sleep (but just work).
tests/miri-tests/excluded/pass/shims/time-with-isolation.rs:13
↓ 1 callersFunctiontest_to_from
()
tests/miri-tests/pass/tree_borrows/copy-nonoverlapping.rs:11
↓ 1 callersFunctiontest_trait_obj
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:87
↓ 1 callersFunctiontest_trait_obj2
()
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:116
↓ 1 callersFunctiontest_u64_array
()
tests/miri-tests/pass/align_offset_symbolic.rs:71
↓ 1 callersFunctiontest_unsizing
()
tests/miri-tests/pass/packed_struct.rs:54
↓ 1 callersFunctiontest_vec_into_iter
This also internally uses offset_from.
tests/miri-tests/pass/ptr_offset.rs:49
↓ 1 callersFunctionthe_other_function
@run:1 miri: @compile-flags: -Zmiri-tree-borrows This test tests that TB's protector end semantics correctly ensure that protected activated writes ca
tests/miri-tests/fail/aliasing/tree_borrows/protector-write-lazy.rs:5
↓ 1 callersFunctionthree
(a: &mut [(i32, i32)], i: usize, j: usize)
tests/miri-tests/pass/disjoint-array-accesses.rs:28
↓ 1 callersMethodtpb
(&mut self, _s: Self)
tests/miri-tests/pass/both_borrows/2phase.rs:6
↓ 1 callersMethodtransfer
bsan-pass/BorrowSanitizer.cpp:659
↓ 1 callersFunctiontransmute_ptr_to_int
This strips provenance
tests/miri-tests/pass/intptrcast.rs:7
↓ 1 callersFunctiontransmute_strip_provenance
()
tests/miri-tests/pass/ptr_int_transmute.rs:15
↓ 1 callersMethodtraverse_children_this
Traverses all children of `start_idx` including `start_idx` itself. Uses `f_continue` to filter out subtrees and then processes each node with `f_prop
bsan-rt/src/tree_borrows/tree_visitor.rs:276
↓ 1 callersMethodtraverse_nonchildren
Like `traverse_this_parents_children_other`, but skips the children of `start_idx`. Returns the index of the root of the accessed tree.
bsan-rt/src/tree_borrows/tree_visitor.rs:250
↓ 1 callersMethodtree
(self)
bsan-rt/src/borrow_tracker.rs:40
↓ 1 callersFunctiontry_get_host_binary
(sysroot: &Sysroot, binary: &str)
cargo-bsan/src/util.rs:223
↓ 1 callersFunctiontry_parse_llvm_version
(version_string: &str)
cargo-bsan/src/llvm.rs:124
↓ 1 callersFunctiontwo
()
tests/miri-tests/pass/disjoint-array-accesses.rs:23
↓ 1 callersFunctiontwo_mut_protected_same_alloc
This function checks that there is no issue with having two mutable references from the same allocation both under a protector. This is safe code, it
tests/miri-tests/pass/tree_borrows/tree-borrows.rs:66
↓ 1 callersFunctiontwo_phase
()
tests/miri-tests/pass/both_borrows/interior_mutability.rs:189
↓ 1 callersFunctiontwo_phase1
()
tests/miri-tests/pass/both_borrows/2phase.rs:11
↓ 1 callersFunctiontwo_phase2
()
tests/miri-tests/pass/both_borrows/2phase.rs:16
↓ 1 callersFunctiontwo_phase_aliasing_violation
This one really shouldn't be accepted, but since we treat 2phase as raw, we do accept it. Tree Borrows rejects it.
tests/miri-tests/fail/aliasing/stacked_borrows/stacked-borrows.rs:36
↓ 1 callersFunctiontwo_phase_overlapping1
()
tests/miri-tests/pass/both_borrows/2phase.rs:50
↓ 1 callersFunctiontwo_phase_overlapping2
()
tests/miri-tests/pass/both_borrows/2phase.rs:56
↓ 1 callersFunctiontwo_phase_raw
()
tests/miri-tests/pass/both_borrows/2phase.rs:35
↓ 1 callersFunctiontwo_player_ping_pong
()
tests/miri-tests/pass/concurrency/spin_loop.rs:18
↓ 1 callersFunctiontwo_raw
Make sure that we can create two raw pointers from a mutable reference and use them both.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:120
↓ 1 callersFunctionuncertain_provenance
Currently, if we do not know for a tag if an access is local or foreign, then we do not do any state transitions on that tag. However, to implement pr
tests/miri-tests/pass/tree_borrows/wildcard/undetected_ub.rs:18
↓ 1 callersFunctionuninhabited_variant
()
tests/miri-tests/pass/async-fn.rs:63
↓ 1 callersFunctionuninit_fields
()
tests/miri-tests/pass/coroutine.rs:288
↓ 1 callersFunctionuninit_slice
()
tests/miri-tests/pass/slices.rs:181
↓ 1 callersFunctionunique_aliasing
()
tests/miri-tests/pass/strings.rs:29
↓ 1 callersFunctionunit_var
()
tests/miri-tests/pass/trivial.rs:4
← previousnext →901–1,000 of 2,093, ranked by callers