template <typename T, bool Safe = true>
struct SafeSyscallArgument
Defined at line 51 of file ../../zircon/kernel/lib/syscalls/include/lib/syscalls/safe-syscall-argument.h
Change this to `Safe = false` manually to exercise the test code without
using the value-sanitizing code path so the test will fail if the compiler
doesn't generate defensive code.
Public Methods
T Sanitize (RawType value)
This returns a safely valid (if not trustworthy) value of type T by
sanitizing the incoming value from the user of any excess high bits.
This is a direct user value of type T and not to be considered "safe" as
an input value, but it is safely actually of type T by C++ semantics
rather than potentially having undefined behavior at the language level.
Defined at line 66 of file ../../zircon/kernel/lib/syscalls/include/lib/syscalls/safe-syscall-argument.h