Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\ubsan.c Create Date:2022-07-28 07:22:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:handle_overflow

Proto:static void handle_overflow(struct overflow_data *data, void *lhs, void *rhs, char op)

Type:void

Parameter:

TypeParameterName
struct overflow_data *data
void *lhs
void *rhs
charop
165  type = type
169  If suppress_report( & location) Then Return
172  ubsan_prologue( & location)
174  val_to_string(lhs_val_str, size of lhs_val_str , type, lhs)
175  val_to_string(rhs_val_str, size of rhs_val_str , type, rhs)
176  pr_err("%s integer overflow:\n", type_is_signed(type) ? "signed" : "unsigned")
178  pr_err("%s %c %s cannot be represented in type %s\n", lhs_val_str, op, rhs_val_str, type_name)
184  ubsan_epilogue()
Caller
NameDescribe
__ubsan_handle_add_overflow
__ubsan_handle_sub_overflow
__ubsan_handle_mul_overflow