llvm::GetShadowBytesAfterScope

Return shadow bytes after all locals have gone out of scope.

Synopsis

Declared in <llvm/Transforms/Utils/ASanStackFrameLayout.h>

SmallVector<uint8_t, 64>
GetShadowBytesAfterScope(
    SmallVectorImpl<ASanStackVariableDescription> const& Vars,
    ASanStackFrameLayout const& Layout);

Description

Redzones are marked, and each variable's lifetime region is filled with use-after-scope magic. This shadow represents the state of the stack frame when all local variables are outside their own scope.

Return Value

Shadow bytes with redzones and use-after-scope bytes marked.

Parameters

NameDescription
VarsStack variables after layout has been computed.
LayoutComputed frame layout that supplies granularity and size.