================
@@ -185,10 +185,12 @@ ptr2 = __alloc_token_my_malloc(size, token_id);
```
Note: Even in the default mode (without `-fsanitize-alloc-token-extended`),
-an *inline* allocation wrapper marked with the [malloc][malloc-attribute] or
-[alloc_size][alloc-size-attribute] attribute is
+an *inline* allocation wrapper marked with the [malloc][malloc-attribute],
+`malloc_span`, or [alloc_size][alloc-size-attribute] attribute is
supported if it is inlined into its caller: the inferred token is propagated to
-the allocation call the wrapper returns, which is then instrumented normally.
+the allocation call the wrapper returns (for `malloc_span`, the call whose
+result or `{pointer, size}` begin pointer is returned), which is then
----------------
david-xl wrote:
The doc now only says that inlined malloc_span wrappers are supported when they
return the allocation call's result unchanged, and that spans assembled from
fields are not.
https://github.com/llvm/llvm-project/pull/244314
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits