函数逻辑报告 |
Source Code:lib\strnlen_user.c |
Create Date:2022-07-27 08:18:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Do a strnlen, return length of string *with* final '\0'.* 'count' is the user-supplied count, while 'max' is the* address space maximum.* Return 0 for exceptions (which includes hitting the address* space maximum), or 'count+1' if hitting the user-supplied
函数原型:static inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
const char __user * | src | |
unsigned long | count | |
unsigned long | max |
26 | res等于0 |
37 | unsafe_get_user(c, (unsignedlong__user * )src, efault) |
38 | c或等于aligned_byte_mask(align) |
40 | 循环 |
42 | 如果判断为零则 |
43 | data等于prep_zero_mask(c, data, & constants) |
44 | data等于create_zero_mask(data) |
49 | 如果此条件成立可能性小(为编译器优化)(max <= sizeof(unsignedlong))则退出 |
67 | efault : |
68 | 返回:0 |
名称 | 描述 |
---|---|
strnlen_user | 用户字符串长度 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |