MCPcopy Create free account

hub / github.com/BorrowSanitizer/bsan / functions

Functions2,093 in github.com/BorrowSanitizer/bsan

↓ 75 callersMethodpush
Record an additional event to the history.
bsan-rt/src/tree_borrows/diagnostics.rs:129
↓ 73 callersMethodget
Returns the current reference count at the time this function is called.
bsan-rt/src/tree_borrows/refcount.rs:80
↓ 68 callersMethoditer
Iterates over all key-value pairs in the map.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:237
↓ 60 callersFunctiontransmute
()
tests/miri-tests/pass/intptrcast.rs:40
↓ 60 callersMethodwrite
Print the current indentation.
bsan-rt/src/tree_borrows/diagnostics.rs:625
↓ 53 callersFunctiondefault
()
tests/test-cargo-bsan/src/main.rs:6
↓ 44 callersFunctionfrom
()
tests/miri-tests/pass/arrays.rs:37
↓ 42 callersFunctionf
(x: S<[u8]>)
tests/miri-tests/pass/unsized.rs:29
↓ 40 callersMethodclone
Snapshots the current count into a fresh `RefCount`.
bsan-rt/src/tree_borrows/refcount.rs:13
↓ 40 callersMethodclone
(&self)
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:27
↓ 40 callersMethodinto
(self)
bsan-rt/src/memory/mod.rs:30
↓ 40 callersFunctiontest_abi_compat
(t: T, u: U)
tests/miri-tests/pass/function_calls/abi_compat.rs:30
↓ 37 callersMethodas_mut_ptr
(&mut self)
tests/miri-tests/pass/both_borrows/smallvec.rs:81
↓ 34 callersMethodrun
bsan-pass/BorrowSanitizer.cpp:713
↓ 33 callersMethodlen
(&self)
tests/miri-tests/pass/both_borrows/smallvec.rs:90
↓ 32 callersMethoditer_mut
Provides mutable iteration over everything in the given range. As a side-effect, this will split entries in the map that are only partially hit by the
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:139
↓ 29 callersMethodget
(&self)
bsan-rt/src/lib.rs:100
↓ 26 callersMethodpush
Pretends to not be a throwaway allocation method like this. A more realistic substitute is using intrusive linked lists, which requires access to the
tests/miri-tests/pass/box-custom-alloc-aliasing.rs:43
↓ 24 callersMethodget
(&self)
tests/miri-tests/pass/issues/issue-23261.rs:14
↓ 23 callersMethodinsert
(&mut self, key: K)
bsan-rt/src/tree_borrows/data_structures/unimap.rs:128
↓ 23 callersMethodlen
How many keys/index pairs are currently active.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:115
↓ 21 callersMethodcontains
bsan-rt/llvm-wrapper/bsan_set.cpp:21
↓ 21 callersMethodsize
bsan-rt/llvm-wrapper/bsan_set.h:36
↓ 20 callersMethodadd
(&mut self, n: u64)
tests/miri-tests/fail/aliasing/stacked_borrows/stacked-borrows.rs:39
↓ 20 callersMethodget_mut
Get the value at this index mutably, if it exists.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:215
↓ 20 callersMethodinsert
bsan-rt/llvm-wrapper/bsan_set.cpp:26
↓ 20 callersMethodset
bsan-pass/BorrowSanitizer.cpp:669
↓ 18 callersMethodget
(&self)
tests/miri-tests/pass/dst-field-align.rs:13
↓ 18 callersFunctioninto_raw
()
tests/miri-tests/pass/box.rs:11
↓ 17 callersMethodis_empty
Returns true if the map is empty.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:232
↓ 16 callersFunctionglobal_ctx
()
bsan-rt/src/global.rs:301
↓ 14 callersMethodpop
(&self)
tests/miri-tests/pass/box-custom-alloc-aliasing.rs:27
↓ 13 callersFunctionBlockInterception
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:28
↓ 13 callersMethodbytes
Get the number of bytes in a size
bsan-rt/src/helpers.rs:40
↓ 13 callersMethodgetProvenanceDesc
Provides a list of the locations of provenance values inside a type.
bsan-pass/BorrowSanitizer.cpp:352
↓ 13 callersFunctionglobal_ctx
bsan-rt/llvm-wrapper/bsan_global.cpp:125
↓ 13 callersMethodnext
(&mut self)
cargo-bsan/src/arg.rs:34
↓ 12 callersMethodend
(self)
bsan-rt/src/helpers.rs:93
↓ 12 callersMethodget
If it exists, the index this key maps to.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:145
↓ 12 callersFunctionhas_arg_flag
Determines whether a `--flag` is present.
cargo-bsan/src/arg.rs:7
↓ 12 callersMethodpath
(&self)
tests/fix_utils.rs:105
↓ 11 callersFunctioncount_rs
(path: &Path)
bsan-script/src/stats.rs:6
↓ 11 callersFunctiondealloc
Checks that we can deallocate through a wildcard reference.
tests/miri-tests/pass/tree_borrows/wildcard/wildcard.rs:101
↓ 11 callersFunctiontest
(expect_msg: Option<&str>, do_panic: impl FnOnce(usize) -> !)
tests/miri-tests/should-pass/performance/panic/catch_panic.rs:91
↓ 10 callersMethodbuild_artifact
(&mut self, b: impl Buildable, args: &[String])
bsan-script/src/env.rs:380
↓ 10 callersFunctioncall_once
(f: impl async FnOnce() -> T)
tests/miri-tests/pass/async-closure-captures.rs:30
↓ 9 callersFunctionBsanAllocate
bsan-rt/llvm-wrapper/bsan_allocator.cpp:77
↓ 9 callersFunctionGetParamSlot
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:104
↓ 9 callersFunctionalloc_range
(start: Size, size: Size)
bsan-rt/src/helpers.rs:86
↓ 9 callersMethoddefault_location_state
(&self)
bsan-rt/src/tree_borrows/tree.rs:1013
↓ 9 callersFunctionfoo
x is a fat pointer
tests/miri-tests/pass/dst-struct.rs:9
↓ 9 callersMethodinsert_at_pos
Inserts an object and its occupied range at given position The Position can be calculated from AllocRange, but the only user of AllocationMap always c
bsan-rt/src/tree_borrows/data_structures/range_object_map.rs:106
↓ 9 callersMethodpermission
(&self)
bsan-rt/src/tree_borrows/tree.rs:96
↓ 9 callersFunctionptrsub
bsan-pass/BorrowSanitizer.cpp:90
↓ 9 callersMethodstrongest_allowed_local_access
Returns the strongest access allowed that is local to this node without causing UB (only considers possible transitions to this permission).
bsan-rt/src/tree_borrows/perms.rs:427
↓ 9 callersMethodto_usize
(self)
bsan-rt/src/helpers.rs:137
↓ 9 callersFunctionui
( mode: Mode, path: &str, target: &VersionMeta, with_dependencies: Dependencies, tmpdir: &
tests/ui.rs:290
↓ 9 callersMethodvalue
(&self)
bsan-script/src/utils.rs:112
↓ 8 callersFunctioncargo_bsan
(cmd, quiet=True, nop=False)
tests/test-cargo-bsan/run_test.py:18
↓ 8 callersFunctionfinish
(mut amt: usize, self_referential: bool, mut t: T)
tests/miri-tests/pass/coroutine.rs:15
↓ 8 callersFunctiononce
(f: F)
tests/miri-tests/pass/closures.rs:26
↓ 8 callersMethodprotected_tags
(&'a self)
bsan-rt/src/global.rs:126
↓ 8 callersFunctionptradd
bsan-pass/BorrowSanitizer.cpp:84
↓ 7 callersFunctionCurrentThread
bsan-rt/llvm-wrapper/bsan_linux.cpp:12
↓ 7 callersFunctionexpect_env_path
(key: &str)
cargo-bsan/src/util.rs:193
↓ 7 callersFunctionfail
(msg)
tests/test-cargo-bsan/run_test.py:13
↓ 7 callersMethoditer_all
Provides iteration over all elements. The iterator also provides the range of the given element. How exactly the ranges are split can differ even for
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:100
↓ 7 callersFunctionperform_access
Dispatch handler depending on the kind of access and its position.
bsan-rt/src/tree_borrows/perms.rs:258
↓ 7 callersMethodremove
Removes a node from the datastructure. The caller needs to ensure that the node does not have any children.
bsan-rt/src/tree_borrows/wildcard.rs:188
↓ 7 callersMethodtake
(&mut self)
bsan-rt/src/borrow_tracker.rs:86
↓ 7 callersFunctiontest
( name, cmd, stdout_ref=None, stderr_ref=None, stdin=b"", stdout_regex=False, stde
tests/test-cargo-bsan/run_test.py:57
↓ 6 callersFunctionAlignRange8
bsan-rt/llvm-wrapper/bsan_shadow.cpp:210
↓ 6 callersFunctionassert_panicked
(f: impl FnOnce() + std::panic::UnwindSafe)
tests/miri-tests/should-pass/performance/panic/std-panic-locations.rs:20
↓ 6 callersMethodbuild
(&self, env: &mut BsanEnv, args: &[String])
bsan-script/src/commands.rs:474
↓ 6 callersMethoddeallocate
(&self, _ptr: NonNull<u8>, _layout: Layout)
tests/miri-tests/pass/box-custom-alloc.rs:29
↓ 6 callersFunctiondrain
( gen_: &mut G, inout: Vec<(R, CoroutineState<Y, G::Return>)>, )
tests/miri-tests/pass/coroutine.rs:186
↓ 6 callersMethoddrain
bsan-rt/llvm-wrapper/bsan_set.h:80
↓ 6 callersMethodextend_to_length
Reserve enough space to insert the value at the right index.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:193
↓ 6 callersMethodfind
bsan-pass/BorrowSanitizer.cpp:646
↓ 6 callersFunctiong
(x: *const i32)
tests/miri-tests/fail/baseline/tail_calls/dangling-local-var.rs:5
↓ 6 callersMethodget_protector_kind
(&self, tag: BorTag)
bsan-rt/src/global.rs:27
↓ 6 callersMethodis_wildcard
(self)
bsan-rt/src/lib.rs:157
↓ 6 callersMethoditer_mut_all
Provides mutable iteration over all elements. The iterator also provides the range of the given element. How exactly the ranges are split can differ e
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:92
↓ 6 callersMethodpoll
(self: Pin<&mut Self>, _cx: &mut Context<'_>)
tests/miri-tests/pass/async-niche-aliasing.rs:19
↓ 6 callersFunctionrustc
()
cargo-bsan/src/util.rs:211
↓ 6 callersMethodsub
(self, other: Size)
bsan-rt/src/helpers.rs:72
↓ 6 callersMethodwith_flags
(&mut self, var: &str, flags: &[&str], f: F)
bsan-script/src/env.rs:206
↓ 5 callersFunctionAlignPtr8
bsan-rt/llvm-wrapper/bsan_shadow.cpp:207
↓ 5 callersFunctionBsanAllocateMetaIntoStack
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:165
↓ 5 callersFunctionCheckMemoryRangeAvailability
TODO: CheckMemoryRangeAvailability is based on msan. Consider refactoring these into a shared implementation.
bsan-rt/llvm-wrapper/bsan_shadow.cpp:44
↓ 5 callersMethodadd
(&mut self, n: u64)
tests/miri-tests/fail/aliasing/tree_borrows/write-during-2phase.rs:12
↓ 5 callersMethodallocate
(&self, layout: Layout)
tests/miri-tests/pass/box-custom-alloc.rs:16
↓ 5 callersMethodcargo_cmd
(&self, crate_dir: impl AsRef<OsStr>, cmd: &str)
bsan-script/src/env.rs:251
↓ 5 callersMethoddealloc
(&self, ptr: NonNull<T>)
bsan-rt/src/memory/heap.rs:87
↓ 5 callersMethoderase
bsan-rt/llvm-wrapper/bsan_set.cpp:38
↓ 5 callersFunctionexpect_drops
(expected_drops: usize, f: impl FnOnce() -> T)
tests/miri-tests/pass/coroutine.rs:213
↓ 5 callersFunctionf
(x: [usize; 2], i: u32)
tests/miri-tests/pass/function_calls/tail_call.rs:44
↓ 5 callersFunctionfoo
x is a fat pointer
tests/miri-tests/pass/dst-struct-sole.rs:9
↓ 5 callersFunctionfoo2
(x: &Fat<[T]>)
tests/miri-tests/pass/dst-struct.rs:18
↓ 5 callersFunctionfoo2
(x: &Fat<[T]>)
tests/miri-tests/pass/dst-struct-sole.rs:16
next →1–100 of 2,093, ranked by callers