MCPcopy Create free account

hub / github.com/BorrowSanitizer/bsan / functions

Functions2,093 in github.com/BorrowSanitizer/bsan

↓ 1 callersFunctionfoo
Make sure that we cannot return a `&` that got already invalidated.
tests/miri-tests/fail/aliasing/both_borrows/return_invalid_shr.rs:6
↓ 1 callersFunctionfoo
Make sure that we cannot pass by argument a `&` that got already invalidated.
tests/miri-tests/fail/aliasing/both_borrows/pass_invalid_shr.rs:6
↓ 1 callersFunctionfoo
Deallocating `x` is UB because not all bytes are in an `UnsafeCell`.
tests/miri-tests/fail/aliasing/both_borrows/mixed_cell_deallocate.rs:11
↓ 1 callersFunctionfoo
Make sure that we cannot return a `&` that got already invalidated, not even in an `Option`.
tests/miri-tests/fail/aliasing/both_borrows/return_invalid_shr_option.rs:6
↓ 1 callersFunctionfoo
(ptr: *const i32)
tests/fail/aliasing/frozen_write.rs:8
↓ 1 callersFunctionfoo
()
tests/fail/aliasing/bsan-ptr-craft.rs:3
↓ 1 callersFunctionfoo
(_r: &mut i32, p: *mut i32)
tests/fail/aliasing/protected_write.rs:9
↓ 1 callersFunctionfoo
(p: *mut i32)
tests/fail/baseline/access_oob.rs:9
↓ 1 callersMethodfoo
(&self)
tests/miri-tests/should-pass/performance/track-caller-attribute.rs:125
↓ 1 callersMethodfoo
(&self, _: u32)
tests/miri-tests/pass/cast-rfc0401-vtable-kinds.rs:22
↓ 1 callersMethodfoo_b
(&self)
tests/miri-tests/pass/dyn-upcast.rs:413
↓ 1 callersFunctionfoo_to_bar
(u: *const FooS<T>)
tests/miri-tests/pass/cast-rfc0401-vtable-kinds.rs:40
↓ 1 callersFunctionforce_mut0
(f: F)
tests/miri-tests/pass/coerce_non_capture_closure_to_fn_ptr.rs:12
↓ 1 callersFunctionforce_mut1
(f: F)
tests/miri-tests/pass/coerce_non_capture_closure_to_fn_ptr.rs:15
↓ 1 callersFunctionforce_once0
use to first make the closure FnOnce() before making it fn()
tests/miri-tests/pass/coerce_non_capture_closure_to_fn_ptr.rs:6
↓ 1 callersFunctionforce_once1
(f: F)
tests/miri-tests/pass/coerce_non_capture_closure_to_fn_ptr.rs:9
↓ 1 callersFunctionforeign_read
A non-child node was read-accessed: keep `Reserved` but mark it as `conflicted` if it is protected; invalidate `Unique`.
bsan-rt/src/tree_borrows/perms.rs:186
↓ 1 callersFunctionforeign_write
A non-child node was write-accessed: this makes everything `Disabled` except for non-protected interior mutable `Reserved` which stay the same.
bsan-rt/src/tree_borrows/perms.rs:241
↓ 1 callersMethodforget
Keep only the tag and creation
bsan-rt/src/tree_borrows/diagnostics.rs:278
↓ 1 callersFunctionformat
()
tests/miri-tests/pass/intptrcast.rs:34
↓ 1 callersFunctionforward_by_ref
()
tests/miri-tests/should-pass/c-variadic.rs:35
↓ 1 callersFunctionforward_by_val
()
tests/miri-tests/should-pass/c-variadic.rs:22
↓ 1 callersFunctionfun1
(x: &mut u8)
tests/miri-tests/fail/aliasing/stacked_borrows/pointer_smuggling.rs:4
↓ 1 callersFunctionfun2
()
tests/miri-tests/fail/aliasing/stacked_borrows/pointer_smuggling.rs:10
↓ 1 callersFunctionfunc
(v: &mut T, f: fn(&T) -> T)
tests/miri-tests/pass/calls.rs:39
↓ 1 callersFunctionfunc_c
()
tests/miri-tests/should-pass/performance/backtrace/backtrace-std.rs:23
↓ 1 callersFunctionfunctions
()
tests/miri-tests/pass/intptrcast.rs:106
↓ 1 callersFunctionfuzzing_block_on
(fut: F)
tests/miri-tests/pass/issues/issue-miri-2068.rs:6
↓ 1 callersMethodgen_klu_spec
(&self)
tests/fail-dep/mirilli/klu-rs.rs:15
↓ 1 callersFunctiongetBorrowSanitizerPluginInfo
bsan-pass/BorrowSanitizerPass.cpp:7
↓ 1 callersMethodgetFrameHeaderBottom
bsan-pass/BorrowSanitizer.cpp:940
↓ 1 callersFunctiongetOrInsertGlobal
bsan-pass/BorrowSanitizer.cpp:102
↓ 1 callersMethodgetOutgoingOffset
Returns the current offset from the top of the relevant section. This is used to update the stack pointer before calling functions and to get the tota
bsan-pass/BorrowSanitizer.cpp:1014
↓ 1 callersMethodgetStackPtr
Returns a pointer to the bottom of the specified section of the shadow frame.
bsan-pass/BorrowSanitizer.cpp:1002
↓ 1 callersFunctionget_environ
()
tests/miri-tests/should-fail/baseline/environ-gets-deallocated.rs:4
↓ 1 callersMethodget_exposed_provenance
(&self, range: AllocRange)
bsan-rt/src/global.rs:143
↓ 1 callersMethodget_or_insert
Either get a previously existing entry, or create a new one if it is not yet present.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:151
↓ 1 callersFunctionglobal_to_box
()
tests/miri-tests/pass/heap_allocator.rs:99
↓ 1 callersFunctionhello_world
()
tests/miri-tests/pass/async-fn.rs:53
↓ 1 callersFunctionhelper
(val: Box<Cell<u8>>, ptr: *const Cell<u8>)
tests/miri-tests/fail/aliasing/box-cell-alias.rs:8
↓ 1 callersFunctionhuge_align
()
tests/miri-tests/pass/align_offset_symbolic.rs:98
↓ 1 callersFunctionhuge_zst
()
tests/miri-tests/pass/arrays.rs:65
↓ 1 callersFunctionignores_arguments
()
tests/miri-tests/should-pass/c-variadic.rs:6
↓ 1 callersFunctionimplicit
The code below is shorthand for the code above (and more likely to represent what one encounters in practice).
tests/miri-tests/pass/regions-lifetime-nonfree-late-bound.rs:28
↓ 1 callersFunctioninSCC
bsan-pass/BorrowSanitizer.cpp:110
↓ 1 callersFunctionincrement
(x: i32)
tests/miri-tests/pass/calls.rs:3
↓ 1 callersMethodincrement
Increments the reference count, returning `true` if the count went from zero to one.
bsan-rt/src/borrow_tracker.rs:353
↓ 1 callersMethodincrement
Increment the indentation by one. Note: need to know if this is the last child or not because the presence of other children changes the way the inden
bsan-rt/src/tree_borrows/diagnostics.rs:609
↓ 1 callersMethodinitFrameHeader
bsan-pass/BorrowSanitizer.cpp:917
↓ 1 callersFunctioninit_global_ctx
()
bsan-rt/src/global.rs:280
↓ 1 callersMethodinitial_state
State that the pattern deterministically produces immediately after the retag of `x`.
bsan-rt/src/tree_borrows/tree/tests.rs:708
↓ 1 callersFunctioninitialize_inner
()
tests/miri-tests/pass/concurrency/concurrent_caller_location.rs:9
↓ 1 callersFunctioninitialize_inner
(_init: &mut dyn FnMut() -> bool)
tests/miri-tests/pass/concurrency/issue-miri-1643.rs:8
↓ 1 callersFunctioninner
(t: T)
tests/miri-tests/pass/closures.rs:9
↓ 1 callersFunctioninner
(t: &mut Thing)
tests/miri-tests/pass/stacked_borrows/fnentry_invalidation2.rs:20
↓ 1 callersFunctioninner
@run:0
tests/miri-tests/pass/stacked_borrows/invalidate_against_protector1.rs:2
↓ 1 callersFunctioninner
(x: &mut NotUnpin, f: fn(&mut NotUnpin))
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:228
↓ 1 callersFunctioninner
(x: &mut i32, f: fn(*mut i32))
tests/miri-tests/fail/aliasing/tree_borrows/strongly-protected.rs:5
↓ 1 callersFunctioninner
(x: &mut i32, f: fn(usize))
tests/miri-tests/fail/aliasing/tree_borrows/wildcard/strongly_protected_wildcard.rs:5
↓ 1 callersFunctioninner
(x: &mut i32, f: fn(&mut i32))
tests/miri-tests/fail/aliasing/stacked_borrows/deallocate_against_protector1.rs:4
↓ 1 callersFunctioninner
(x: *mut i32, _y: &i32)
tests/miri-tests/fail/aliasing/both_borrows/invalidate_against_protector2.rs:5
↓ 1 callersFunctioninner
(x: *mut i32, _y: &i32)
tests/miri-tests/fail/aliasing/both_borrows/invalidate_against_protector3.rs:7
↓ 1 callersFunctioninstall_git_hooks
Installs git hooks
bsan-script/src/utils.rs:105
↓ 1 callersFunctioninstall_toolchain
( sh: &Shell, host: &VersionMeta, config: &mut BsanConfig, toolchain_dir: &Path, local_dir
bsan-script/src/setup.rs:87
↓ 1 callersMethodinstrumentFunction
bsan-pass/BorrowSanitizer.cpp:2285
↓ 1 callersMethodinstrumentModule
bsan-pass/BorrowSanitizer.cpp:456
↓ 1 callersFunctionint_load_strip_provenance
()
tests/miri-tests/pass/provenance_tests.rs:109
↓ 1 callersFunctioninterior_mut_reborrow
spurious warning
tests/miri-tests/pass/tree_borrows/sb_fails.rs:82
↓ 1 callersFunctioninto_interior_mutability
Getting a pointer into a union with interior mutability used to be tricky business (https://github.com/rust-lang/miri/issues/615), but it should work
tests/miri-tests/pass/both_borrows/interior_mutability.rs:64
↓ 1 callersFunctioninto_unique
()
tests/miri-tests/pass/box.rs:26
↓ 1 callersFunctioninvalid_let
()
tests/miri-tests/pass/underscore_pattern.rs:61
↓ 1 callersFunctioninvalid_let_type_annotation
()
tests/miri-tests/pass/underscore_pattern.rs:88
↓ 1 callersFunctioninvalid_match
()
tests/miri-tests/pass/underscore_pattern.rs:29
↓ 1 callersFunctioninvalid_scalar
()
tests/miri-tests/pass/intrinsics/typed-swap-invalid-scalar.rs:9
↓ 1 callersFunctioninvoke_inner
(b: &dyn B)
tests/miri-tests/pass/dyn-upcast.rs:424
↓ 1 callersFunctioninvoke_outer
(c: &dyn C)
tests/miri-tests/pass/dyn-upcast.rs:428
↓ 1 callersMethodis_cell
Check if `self` is the shared-reference-to-interior-mutable-data state of a pointer.
bsan-rt/src/tree_borrows/perms.rs:302
↓ 1 callersMethodis_disabled
Check if `self` is the terminal state of a pointer (is `Disabled`).
bsan-rt/src/tree_borrows/perms.rs:293
↓ 1 callersMethodis_foreign
Returns true if this access is foreign, i.e. not local.
bsan-rt/src/tree_borrows/foreign_access_skipping.rs:66
↓ 1 callersMethodis_frozen
Check if `self` is the never-allow-writes-again state of a pointer (is `Frozen`).
bsan-rt/src/tree_borrows/perms.rs:297
↓ 1 callersMethodis_initial
(&self)
bsan-rt/src/tree_borrows/tree/tests.rs:386
↓ 1 callersMethodis_relevant
Determines whether `self` is a relevant transition for the error `err`. `self` will be a transition that happened to a tag some time before that tag c
bsan-rt/src/tree_borrows/perms.rs:561
↓ 1 callersFunctionis_target_crate
Determines if we are being invoked (as rustc) to build a crate for the "target" architecture, in contrast to the "host" architecture. Host crates are
cargo-bsan/src/phases.rs:224
↓ 1 callersMethodis_useless
Checks if a node is useless and should be GC'ed. A node is useless if it has no children and also the tag is no longer live.
bsan-rt/src/tree_borrows/tree.rs:446
↓ 1 callersFunctioniter_any
()
tests/miri-tests/pass/iter.rs:25
↓ 1 callersFunctioniter_empty_and_zst
@run:0
tests/miri-tests/pass/iter.rs:2
↓ 1 callersFunctionjoin_orders_after_tls_destructors
This test tests that TLS destructors have run before the thread joins. The test has no false positives (meaning: if the test fails, there's actually a
tests/miri-tests/pass/tls/tls_macro_drop.rs:120
↓ 1 callersFunctionkill_descendants
(root_pid: i32)
tests/fix_utils.rs:114
↓ 1 callersFunctionlarge_raw_slice
()
tests/miri-tests/pass/slices.rs:261
↓ 1 callersFunctionlib1
(x: &&mut i32)
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:244
↓ 1 callersFunctionlib2
()
tests/miri-tests/pass/both_borrows/basic_aliasing_model.rs:250
↓ 1 callersFunctionlinks_executable
Whether this rustc invocation links an executable (a `bin` or `cdylib`), as opposed to an rlib (which only records native-lib deps) or a Rust `dylib`
cargo-bsan/src/phases.rs:288
↓ 1 callersFunctionlist_from
(v: &[T])
tests/miri-tests/pass/linked-list.rs:7
↓ 1 callersFunctionlist_tests
Return all #[test] names discovered in the given test binary.
bsan-script/etc/bench.py:251
↓ 1 callersMethodllvm_libdir
(&self)
cargo-bsan/src/llvm.rs:73
↓ 1 callersMethodllvm_runtime
(&self)
cargo-bsan/src/setup.rs:132
↓ 1 callersFunctionlocal_addr_of_mut
()
tests/miri-tests/pass/tree_borrows/tree-borrows.rs:18
↓ 1 callersFunctionlooks_like_rustdoc
Returns `true` if our flags look like they may be for rustdoc, i.e., this is cargo calling us to be rustdoc. It's hard to be sure as cargo does not ha
cargo-bsan/src/main.rs:15
↓ 1 callersFunctionmain
(argv: list[str])
bsan-script/etc/bench.py:395
↓ 1 callersFunctionmake_ref
(x: *mut i32)
tests/miri-tests/fail/baseline/dangling_pointers/stack_temporary.rs:5
← previousnext →601–700 of 2,093, ranked by callers