MCPcopy Create free account

hub / github.com/BorrowSanitizer/bsan / functions

Functions2,093 in github.com/BorrowSanitizer/bsan

↓ 5 callersFunctionfoo3
(x: &Fat<Fat<[isize]>>)
tests/miri-tests/pass/dst-struct.rs:28
↓ 5 callersMethodforEach
bsan-rt/llvm-wrapper/bsan_set.h:38
↓ 5 callersMethodget
()
bsan-rt/src/memory/mod.rs:81
↓ 5 callersMethodin_mode
(&mut self, m: Mode, f: F)
bsan-script/src/env.rs:222
↓ 5 callersMethodis_foreign
Check that access is either Ancestor or Distant, i.e. not a transitive child (initial pointer included).
bsan-rt/src/tree_borrows/tree.rs:1062
↓ 5 callersMethodnext
(ptr: *mut AllocInfo)
bsan-rt/src/memory/mod.rs:103
↓ 5 callersFunctionprotect
(arg: &mut u32)
tests/miri-tests/pass/tree_borrows/wildcard/reborrow.rs:163
↓ 5 callersFunctionrun_capture
Run a command and return stdout as a string. The command inherits the current environment.
bsan-script/etc/bench.py:105
↓ 5 callersMethodsysroot_binary
(&self, binary_name: &str)
bsan-script/src/env.rs:289
↓ 4 callersMethodAcquireProvenance
Adds a provenance value with a zero reference count to this thread's zero count table. Increments the "busy" flag to stop the garbage collector from i
bsan-rt/llvm-wrapper/bsan_thread.h:84
↓ 4 callersFunctionGetRetValSlot
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:109
↓ 4 callersFunctionNewBorTag
Allocates a new borrow tag.
bsan-rt/llvm-wrapper/bsan.cpp:74
↓ 4 callersFunction__bsan_alloc
bsan-rt/llvm-wrapper/bsan.cpp:442
↓ 4 callersFunctioncall
(f: &impl async Fn() -> T)
tests/miri-tests/pass/async-closure-captures.rs:26
↓ 4 callersMethodclear
bsan-rt/llvm-wrapper/bsan_set.cpp:79
↓ 4 callersMethodcontains_key
Whether this key has an associated index or not.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:120
↓ 4 callersFunctiondebug_cmd
Debug-print a command that is going to be run.
cargo-bsan/src/util.rs:59
↓ 4 callersMethodentry
Get a wrapper around a mutable access to the value corresponding to `idx`.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:252
↓ 4 callersFunctionexecute
(cmd, env=None)
tests/test-cargo-bsan/run_test.py:80
↓ 4 callersFunctionf
(_x: *const i32)
tests/miri-tests/fail/baseline/tail_calls/dangling-local-var.rs:9
↓ 4 callersFunctionflags
bsan-rt/llvm-wrapper/bsan_flags.h:28
↓ 4 callersMethodfoo
(&self)
tests/miri-tests/pass/dst-raw.rs:14
↓ 4 callersFunctionforce_fnonce
(f: impl async FnOnce() -> T)
tests/miri-tests/pass/async-closure-captures.rs:93
↓ 4 callersFunctionget_arg_flag_value
Gets the value of a `--flag`.
cargo-bsan/src/arg.rs:131
↓ 4 callersFunctionget_arg_flag_values
Gets the values of a `--flag`.
cargo-bsan/src/arg.rs:126
↓ 4 callersMethodhandle_error
(&self, ub_info: UBInfo, pc: Span)
bsan-rt/src/global.rs:200
↓ 4 callersMethodincrement
Increments the reference count. Returns `true` if the count transitioned from zero to one.
bsan-rt/src/tree_borrows/refcount.rs:34
↓ 4 callersMethoditer
Provides read-only iteration over everything in the given range. This does not* split items if they overlap with the edges. Do not use this to mutate
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:67
↓ 4 callersMethodperform_access
Apply the effect of an access to one location, including - applying `Permission::perform_access` to the inner `Permission`, - emitting protector UB if
bsan-rt/src/tree_borrows/tree.rs:139
↓ 4 callersMethodperform_access
(&self, kind: AccessKind, rel: AccessRelatedness)
bsan-rt/src/tree_borrows/tree/tests.rs:390
↓ 4 callersMethodperform_test_access
(self, acc: &TestAccess)
bsan-rt/src/tree_borrows/tree/tests.rs:440
↓ 4 callersFunctionprint_diff
(ptr: *mut i32, msg: &str)
tests/pass/analyze_retags.rs:7
↓ 4 callersMethodread_if_accessed
Perform a read on the given pointer if its state is `accessed`. Must be called just after reborrowing a pointer, and just after removing a protector.
bsan-rt/src/tree_borrows/tree/tests.rs:450
↓ 4 callersMethodremove_useless_node
Properly removes a node. The node to be removed should not otherwise be usable. It also should have no children, but this is not checked, so that node
bsan-rt/src/tree_borrows/tree.rs:537
↓ 4 callersFunctionroot_dir
()
bsan-script/src/utils.rs:64
↓ 4 callersFunctiontest
(me: MyEnum)
tests/miri-tests/pass/enums.rs:9
↓ 4 callersFunctiontest_ptr
(ptr: *mut ())
tests/miri-tests/pass/zero-sized-accesses-and-offsets.rs:20
↓ 4 callersMethodupdate_exposure
Update the tracking information of a tree, to reflect that the node specified by `id` is now exposed with `new_exposed_as` permission. Propagates the
bsan-rt/src/tree_borrows/wildcard.rs:152
↓ 3 callersFunctionBsanAllocateMeta
bsan-rt/llvm-wrapper/bsan_interceptors.cpp:159
↓ 3 callersFunctionClearShadow
bsan-rt/llvm-wrapper/bsan_shadow.cpp:310
↓ 3 callersFunctionClearSlot
Clears the provenance from the given stack slot.
bsan-rt/llvm-wrapper/bsan.cpp:116
↓ 3 callersFunctionGetAllocatorCache
bsan-rt/llvm-wrapper/bsan_allocator.cpp:67
↓ 3 callersMethodInit
bsan-rt/llvm-wrapper/bsan_thread.cpp:21
↓ 3 callersFunctionIsRetag
Indicates that this is a call to one of BorrowSanitizer's retag intrinsic functions.
bsan-pass/Retag.cpp:7
↓ 3 callersFunctionUpdateShadowSlot
bsan-rt/llvm-wrapper/bsan_shadow.cpp:234
↓ 3 callersFunction__bsan_rc_dec
bsan-rt/llvm-wrapper/bsan.cpp:402
↓ 3 callersMethodaccess_type
Determines whether a given access on `range` overlaps with an existing allocation
bsan-rt/src/tree_borrows/data_structures/range_object_map.rs:62
↓ 3 callersMethodaddIncoming
bsan-pass/BorrowSanitizer.cpp:683
↓ 3 callersFunctionaddr_is_type
bsan-rt/llvm-wrapper/bsan_shadow.h:87
↓ 3 callersMethodalloc
(&self, elem: T)
bsan-rt/src/memory/heap.rs:56
↓ 3 callersMethodartifact
(&self, env: &BsanEnv)
bsan-script/src/commands.rs:466
↓ 3 callersFunctionassert_host_bin
(sysroot: &Sysroot, binary: &str)
cargo-bsan/src/util.rs:227
↓ 3 callersFunctionassert_rustc_llvm_version
(binary: &PathBuf, expected: &LlvmVersion)
cargo-bsan/src/llvm.rs:92
↓ 3 callersFunctionb
()
tests/miri-tests/pass/union.rs:23
↓ 3 callersMethodbuild
Produce a UB error.
bsan-rt/src/tree_borrows/diagnostics.rs:324
↓ 3 callersMethodcargo_cmd_base
(&self, cmd: &str)
bsan-script/src/env.rs:259
↓ 3 callersMethodcontains_tag
(&self, tag: BorTag)
bsan-rt/src/tree_borrows/tree.rs:1119
↓ 3 callersMethodcopy_to_sysroot_libdir
(&self, file: &Path)
bsan-script/src/env.rs:244
↓ 3 callersMethoddata
bsan-rt/llvm-wrapper/bsan_set.h:35
↓ 3 callersMethoddestroy
bsan-rt/llvm-wrapper/bsan_set.cpp:52
↓ 3 callersFunctionempty
@run:0
tests/miri-tests/pass/trivial.rs:2
↓ 3 callersFunctionexec
Execute the `Command`, where possible by replacing the current process with a new process described by the `Command`. Then exit this process with the
cargo-bsan/src/util.rs:66
↓ 3 callersMethodexec
( self, quiet: bool, skip: bool, toolchain_dir: Option<PathBuf>, insta
bsan-script/src/commands.rs:17
↓ 3 callersFunctionf
(x: &UnsafeCell<i32>)
tests/miri-tests/pass/both_borrows/interior_mutability.rs:86
↓ 3 callersMethodfind_offset
Finds the position of the allocation containing the given offset. If the offset is not in an existing allocation, then returns Err containing the posi
bsan-rt/src/tree_borrows/data_structures/range_object_map.rs:44
↓ 3 callersMethodfinish_foreign_accesses
(&mut self, this: &mut TreeVisitor<'_, T>)
bsan-rt/src/tree_borrows/tree_visitor.rs:144
↓ 3 callersMethodfor_matirx_entry
(&self, matrix: u32, mut f: impl FnMut(i32, i32, D))
tests/fail-dep/mirilli/klu-rs.rs:28
↓ 3 callersMethodformat_symbol
(&mut self, symbol: Symbol, indentation: usize)
bsan-rt/src/errors.rs:93
↓ 3 callersMethodgetOrInitFrameHeaderBottom
bsan-pass/BorrowSanitizer.cpp:954
↓ 3 callersMethodgetOrInitFrameHeaderTop
bsan-pass/BorrowSanitizer.cpp:933
↓ 3 callersFunctiongetOrInsertTLSGlobal
bsan-pass/BorrowSanitizer.cpp:94
↓ 3 callersFunctionhelper
(mut ap: VaList)
tests/miri-tests/should-pass/c-variadic.rs:23
↓ 3 callersFunctionid
(t: T)
tests/miri-tests/pass/calls.rs:17
↓ 3 callersMethodinto_array
(self)
tests/miri-tests/excluded/pass/intrinsics/portable-simd.rs:58
↓ 3 callersMethodisProtected
bsan-pass/Retag.h:27
↓ 3 callersMethodline_length
(&self)
bsan-rt/src/sanitizer_common.rs:24
↓ 3 callersMethodor_insert
Insert in the map and get the value.
bsan-rt/src/tree_borrows/data_structures/unimap.rs:260
↓ 3 callersMethodperform_test_event
(self, evt: &TestEvent<RetX, RetY>)
bsan-rt/src/tree_borrows/tree/tests.rs:488
↓ 3 callersFunctionphase_rustc
(args: impl Iterator<Item = String>, phase: RustcPhase)
cargo-bsan/src/phases.rs:213
↓ 3 callersMethodpopulate_env
(&self, cmd: &mut Command)
cargo-bsan/src/setup.rs:44
↓ 3 callersMethodpopulate_env
(&self, cmd: &mut Command)
cargo-bsan/src/llvm.rs:53
↓ 3 callersMethodprint_as_access
(self, is_foreign: bool)
bsan-rt/src/tree_borrows/diagnostics.rs:40
↓ 3 callersFunctionprompt_user
Prompt a user for a answer, looping until they enter an accepted input or nothing
bsan-script/src/utils.rs:44
↓ 3 callersMethodpropagate_at
( &mut self, this: &mut TreeVisitor<'_, T>, idx: UniIndex, rel_pos: AccessRela
bsan-rt/src/tree_borrows/tree_visitor.rs:81
↓ 3 callersMethodremove
Return whatever index this key was using to the deassigned pool. Note: calling this function can be dangerous. If the index still exists somewhere in
bsan-rt/src/tree_borrows/data_structures/unimap.rs:179
↓ 3 callersMethodremoving_exposed_provenance
Removes a provenance value that has been exposed for the given range. If `strict`, then exposed provenance will only be removed if is matches Otherwis
bsan-rt/src/global.rs:168
↓ 3 callersMethodsize
(&self)
bsan-rt/src/tree_borrows/data_structures/dedup_range_map.rs:36
↓ 3 callersMethodstrongest_idempotent_foreign_access
See `foreign_access_skipping.rs`. Computes the SIFA of a permission.
bsan-rt/src/tree_borrows/perms.rs:144
↓ 3 callersMethodtarget_binary
(&self, binary_name: &str)
bsan-script/src/env.rs:277
↓ 3 callersFunctiontest
(x: T)
tests/miri-tests/pass/slices.rs:60
↓ 3 callersFunctiontest_mut
(x: T)
tests/miri-tests/pass/slices.rs:115
↓ 3 callersMethodtree_opt
(self)
bsan-rt/src/borrow_tracker.rs:44
↓ 3 callersFunctionversion_meta
(sh: &Shell, toolchain: &str)
bsan-script/src/utils.rs:93
↓ 2 callersFunctionAllocationSize
bsan-rt/llvm-wrapper/bsan_allocator.cpp:176
↓ 2 callersFunctionCopyShadow
bsan-rt/llvm-wrapper/bsan_shadow.cpp:260
↓ 2 callersFunctionInitShadow
bsan-rt/llvm-wrapper/bsan_shadow.cpp:81
↓ 2 callersFunctionInitializeDefaultFlags
bsan-rt/llvm-wrapper/bsan_flags.cpp:48
↓ 2 callersFunctionProcessFlags
Validate flags and report incompatible configurations
bsan-rt/llvm-wrapper/bsan_flags.cpp:88
↓ 2 callersMethodRequestGC
bsan-rt/llvm-wrapper/bsan_global.cpp:99
↓ 2 callersFunctionSetCurrentThread
bsan-rt/llvm-wrapper/bsan_linux.cpp:14
← previousnext →101–200 of 2,093, ranked by callers