static __always_inline void check_object_size(constvoid *ptr, unsignedlong n, bool to_user)
{ if (!__builtin_constant_p(n) &&
static_branch_maybe(CONFIG_HARDENED_USERCOPY_DEFAULT_ON,
&validate_usercopy_range)) {
__check_object_size(ptr, n, to_user);
}
} #else staticinlinevoid check_object_size(constvoid *ptr, unsignedlong n, bool to_user)
{ } #endif/* CONFIG_HARDENED_USERCOPY */
externvoid __compiletime_error("copy source size is too small")
__bad_copy_from(void); externvoid __compiletime_error("copy destination size is too small")
__bad_copy_to(void);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.