MCPcopy Create free account

hub / github.com/BorrowSanitizer/bsan / functions

Functions2,093 in github.com/BorrowSanitizer/bsan

↓ 1 callersFunctionptr_eq_dangling
()
tests/miri-tests/pass/intptrcast.rs:63
↓ 1 callersFunctionptr_eq_integer
()
tests/miri-tests/pass/intptrcast.rs:89
↓ 1 callersFunctionptr_eq_out_of_bounds
()
tests/miri-tests/pass/intptrcast.rs:73
↓ 1 callersFunctionptr_eq_out_of_bounds_null
()
tests/miri-tests/pass/intptrcast.rs:82
↓ 1 callersFunctionptr_int_casts
()
tests/miri-tests/pass/ptr_int_casts.rs:15
↓ 1 callersFunctionptr_int_ops
()
tests/miri-tests/pass/ptr_int_casts.rs:51
↓ 1 callersFunctionptr_integer_array
()
tests/miri-tests/pass/transmute_ptr.rs:24
↓ 1 callersFunctionptr_offset
()
tests/miri-tests/pass/ptr_offset.rs:73
↓ 1 callersFunctionptr_partial_read
@run:0 miri: @revisions: stack tree miri: @[tree]compile-flags: -Zmiri-tree-borrows Test what happens when we read parts of a pointer. Related to <htt
tests/miri-tests/pass/ptr_int_transmute.rs:6
↓ 1 callersFunctionptr_roundtrip_confusion
Ensure that we can move between allocations after casting back to a ptr
tests/miri-tests/pass/ptr_int_from_exposed.rs:20
↓ 1 callersFunctionptr_roundtrip_imperfect
Ensure we can cast back a different integer than the one we got when exposing.
tests/miri-tests/pass/ptr_int_from_exposed.rs:36
↓ 1 callersFunctionptr_roundtrip_null
Ensure that we can roundtrip through a pointer with an address of 0
tests/miri-tests/pass/ptr_int_from_exposed.rs:47
↓ 1 callersFunctionptr_roundtrip_offset_from
()
tests/miri-tests/pass/ptr_int_from_exposed.rs:59
↓ 1 callersFunctionptr_roundtrip_out_of_bounds
Ensure we can expose the address of a pointer that is out-of-bounds
tests/miri-tests/pass/ptr_int_from_exposed.rs:9
↓ 1 callersFunctionraw_ptr_receiver
()
tests/miri-tests/pass/dyn-arbitrary-self.rs:127
↓ 1 callersFunctionraw_ref_to_part
()
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:167
↓ 1 callersFunctionrc_cell
()
tests/miri-tests/pass/rc.rs:21
↓ 1 callersFunctionrc_fat_ptr_eq
()
tests/miri-tests/pass/rc.rs:74
↓ 1 callersFunctionrc_from
()
tests/miri-tests/pass/rc.rs:67
↓ 1 callersFunctionrc_raw
()
tests/miri-tests/pass/rc.rs:39
↓ 1 callersFunctionrc_refcell
()
tests/miri-tests/pass/rc.rs:13
↓ 1 callersFunctionrc_refcell2
()
tests/miri-tests/pass/rc.rs:29
↓ 1 callersFunctionrc_uninit
()
tests/miri-tests/pass/rc.rs:117
↓ 1 callersFunctionrc_uninit_slice
()
tests/miri-tests/pass/rc.rs:127
↓ 1 callersFunctionread_does_not_invalidate1
Make sure that reading from an `&mut` does, like reborrowing to `&`, NOT invalidate other reborrows.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:33
↓ 1 callersFunctionread_does_not_invalidate2
Same as above, but this time we first create a raw, then read from `&mut` and then freeze from the raw.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:44
↓ 1 callersFunctionread_exact
(_from: &mut &[u8], _to: &mut [u8])
tests/miri-tests/pass/async-fn.rs:49
↓ 1 callersFunctionreborrow
(x: &mut u8)
tests/miri-tests/pass/tree_borrows/tree-borrows.rs:83
↓ 1 callersFunctionreborrow
(x: &mut u8)
tests/miri-tests/pass/tree_borrows/wildcard/wildcard.rs:155
↓ 1 callersFunctionreborrow3
Checks that accessing a reborrowed wildcard reference doesn't invalidate other reborrowed wildcard references, if they are also exposed.
tests/miri-tests/pass/tree_borrows/wildcard/reborrow.rs:109
↓ 1 callersMethodrecord_new
Updates `self` to account for a foreign access.
bsan-rt/src/tree_borrows/foreign_access_skipping.rs:50
↓ 1 callersMethodrecord_new_access
Records a new access, so that future access can potentially be skipped by `skip_if_known_noop`. This must be called on child accesses, and otherwise s
bsan-rt/src/tree_borrows/tree.rs:246
↓ 1 callersFunctionref_mut_protector
()
tests/miri-tests/pass/both_borrows/interior_mutability.rs:167
↓ 1 callersFunctionref_protector
Adding a protector for `Ref` would break this
tests/miri-tests/pass/both_borrows/interior_mutability.rs:153
↓ 1 callersFunctionref_raw_int_raw
Just to make sure that casting a ref to raw, to int and back to raw and only then using it works. This rules out ideas like "do escape-to-raw lazily";
tests/miri-tests/pass/both_borrows/int-to-ptr.rs:10
↓ 1 callersFunctionref_to_cell
Pretend that the reference has interior mutability. Don't actually mutate it though, it will fail because it has a Frozen parent.
tests/miri-tests/pass/tree_borrows/transmute-unsafecell.rs:20
↓ 1 callersFunctionrefcell_basic
()
tests/miri-tests/pass/both_borrows/interior_mutability.rs:120
↓ 1 callersFunctionrefcell_unsize
()
tests/miri-tests/pass/without-validation.rs:6
↓ 1 callersFunctionreference
()
tests/miri-tests/pass/both_borrows/maybe_dangling.rs:30
↓ 1 callersFunctionreinterstruct
(box_pair: Box<PairFoo>)
tests/miri-tests/pass/box.rs:50
↓ 1 callersMethodrel_pair
Knowing the relative position of `x` to `y`, determine the relative position of the accessed pointer defined by `self` relative to each `x` and `y`.
bsan-rt/src/tree_borrows/tree/tests.rs:272
↓ 1 callersMethodremove
bsan-rt/llvm-wrapper/bsan_set.cpp:67
↓ 1 callersMethodremove_dead_tags
(&mut self, dead_tags: &[BorTag])
bsan-rt/src/tree_borrows/tree.rs:1212
↓ 1 callersMethodremove_exposed_provenance
(&self, range: AllocRange, strict: bool)
bsan-rt/src/global.rs:159
↓ 1 callersMethodremove_from_pos
(&mut self, pos: Position)
bsan-rt/src/tree_borrows/data_structures/range_object_map.rs:122
↓ 1 callersMethodremove_pos_range
(&mut self, pos_range: Range<Position>)
bsan-rt/src/tree_borrows/data_structures/range_object_map.rs:118
↓ 1 callersMethodremove_protector
(&mut self, tag: BorTag)
bsan-rt/src/global.rs:35
↓ 1 callersMethodremove_useless_children
Traverses the entire tree looking for useless tags. Removes from the tree all useless child nodes of root. It will not delete the root itself. NOTE:
bsan-rt/src/tree_borrows/tree.rs:564
↓ 1 callersMethodremove_useless_children_dead
Like [`Self::remove_useless_children`], but takes a slice of *dead* tags to remove instead of a set of *live* tags to keep. See [`AllocState::remove_d
bsan-rt/src/tree_borrows/tree.rs:631
↓ 1 callersFunctionreplace_vptr
()
tests/miri-tests/pass/dyn-upcast.rs:388
↓ 1 callersFunctionrequire_tool
(name: str)
bsan-script/etc/bench.py:121
↓ 1 callersMethodretag
( &mut self, global_ctx: &GlobalCtx, retag_info: RetagInfo<'_>, span: Span,
bsan-rt/src/borrow_tracker.rs:236
↓ 1 callersMethodretag_y
(self, new_y: LocStateProt)
bsan-rt/src/tree_borrows/tree/tests.rs:478
↓ 1 callersFunctionretarget
This makes a ref that was passed to us via &mut alias with things it should not alias with
tests/miri-tests/fail/aliasing/both_borrows/alias_through_mutation.rs:6
↓ 1 callersFunctionreturned_mut_is_usable
This checks that a reborrowed mutable reference returned from a function is actually writeable. The fact that this is not obvious is due to the additi
tests/miri-tests/pass/tree_borrows/tree-borrows.rs:82
↓ 1 callersFunctionreturned_mut_is_usable
Analogous to same test in `../tree-borrows.rs` but with returning a reborrowed wildcard reference.
tests/miri-tests/pass/tree_borrows/wildcard/reborrow.rs:157
↓ 1 callersFunctionreturned_mut_is_usable
Analogous to same test in `../tree-borrows.rs` but with a protected wildcard reference.
tests/miri-tests/pass/tree_borrows/wildcard/wildcard.rs:154
↓ 1 callersFunctionround_mut_ptr_up_to_unchecked
(ptr: *mut u8, divisor: usize)
bsan-rt/src/memory/mod.rs:121
↓ 1 callersFunctionround_trip_and_call
(t: *const (dyn Foo<u32> + 'a))
tests/miri-tests/pass/cast-rfc0401-vtable-kinds.rs:28
↓ 1 callersFunctionrun_fut
(fut: impl Future<Output = T>)
tests/miri-tests/pass/move-data-across-await-point.rs:56
↓ 1 callersFunctionrun_miri_test
Time a single Miri test, excluding `cargo-miri` overhead, by capturing its final `miri` invocation as a standalone script.
bsan-script/etc/bench.py:234
↓ 1 callersFunctionrun_tests
( mode: Mode, path: &str, target: &VersionMeta, with_dependencies: bool, tmpdir: &Path,
tests/ui.rs:105
↓ 1 callersFunctionrust_issue_68303
Make sure we do not have bad enum layout optimizations.
tests/miri-tests/pass/both_borrows/interior_mutability.rs:182
↓ 1 callersMethodrust_runtime
(&self)
cargo-bsan/src/setup.rs:141
↓ 1 callersFunctionrustc_lld
(sysroot_target_bindir: &Path)
cargo-bsan/src/llvm.rs:10
↓ 1 callersFunctionrustdoc
()
cargo-bsan/src/util.rs:219
↓ 1 callersFunctionrustdoc_path
()
cargo-bsan/src/util.rs:215
↓ 1 callersMethodsave
(&self, path: &Path)
bsan-script/src/env.rs:104
↓ 1 callersFunctionself_referential_box
()
tests/miri-tests/pass/future-self-referential.rs:91
↓ 1 callersFunctionsend_on_sync
The test taken from the Rust documentation.
tests/miri-tests/pass/channels.rs:48
↓ 1 callersFunctionsetup_sysroot
Performs the setup required to make `cargo bsan` work: Getting a custom-built libstd. Then sets `BSAN_SYSROOT`. Skipped if `BSAN_SYSROOT` is already s
cargo-bsan/src/setup.rs:162
↓ 1 callersFunctionsetup_toolchain
( sh: &Shell, host: &VersionMeta, config: &mut BsanConfig, toolchain_dir: &Path, root_dir:
bsan-script/src/setup.rs:22
↓ 1 callersMethodshadow_stack
bsan-rt/llvm-wrapper/bsan_thread.h:52
↓ 1 callersFunctionshared_readonly
This is not a data race!
tests/miri-tests/pass/concurrency/simple.rs:50
↓ 1 callersFunctionshould_be_ub
Example that should be UB but due to wildcard pointers being too permissive we don't notice.
tests/miri-tests/pass/intptrcast.rs:153
↓ 1 callersMethodshould_continue_at
( &self, this: &mut TreeVisitor<'_, T>, idx: UniIndex, rel_pos: AccessRelatedn
bsan-rt/src/tree_borrows/tree_visitor.rs:71
↓ 1 callersFunctionshow_help
()
cargo-bsan/src/phases.rs:34
↓ 1 callersFunctionshow_version
()
cargo-bsan/src/phases.rs:38
↓ 1 callersFunctionshr_and_raw
Make sure that creating a *mut does not invalidate existing shared references.
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:131
↓ 1 callersFunctionsimd_cast
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:672
↓ 1 callersFunctionsimd_float_intrinsics
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:954
↓ 1 callersFunctionsimd_gather_scatter
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:759
↓ 1 callersFunctionsimd_intrinsics
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:898
↓ 1 callersFunctionsimd_mask
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:492
↓ 1 callersFunctionsimd_masked_loadstore
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:1000
↓ 1 callersFunctionsimd_ops_f128
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:288
↓ 1 callersFunctionsimd_ops_f16
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:68
↓ 1 callersFunctionsimd_ops_f32
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:158
↓ 1 callersFunctionsimd_ops_f64
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:223
↓ 1 callersFunctionsimd_ops_i32
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:378
↓ 1 callersFunctionsimd_ops_non_pow2
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:1090
↓ 1 callersFunctionsimd_round
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:804
↓ 1 callersFunctionsimd_swizzle
()
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:750
↓ 1 callersFunctionsimple_send
The test taken from the Rust documentation.
tests/miri-tests/pass/channels.rs:13
↓ 1 callersFunctionslice_of_zst
()
tests/miri-tests/pass/slices.rs:10
↓ 1 callersFunctionsmoke
()
tests/miri-tests/pass/ptr_offset.rs:14
↓ 1 callersFunctionsmoke_resume_arg
()
tests/miri-tests/pass/coroutine.rs:185
↓ 1 callersFunctionsmoketest_map
(mut map: HashMap<i32, i32, S>)
tests/miri-tests/pass/hashmap.rs:21
↓ 1 callersMethodsorted
(&mut self)
tests/fail-dep/mirilli/blitsort-sys.rs:13
↓ 1 callersFunctionspin
()
tests/miri-tests/pass/concurrency/spin_loop.rs:7
← previousnext →801–900 of 2,093, ranked by callers