函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_kasan.c Create Date:2022-07-27 07:26:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kasan_strings

函数原型:static noinline void __init kasan_strings(void)

返回类型:void

参数:

630  size等于24
632  打印信息("use-after-free in strchr\n")
633  ptr等于kmalloc(size, GFP_KERNEL | __GFP_ZERO)
634  如果非ptr则返回
637  kfree(ptr)
645  ptr加等于16
646  strchr(ptr, '1')
648  打印信息("use-after-free in strrchr\n")
649  strrchr - Find the last occurrence of a character in a string*@s: The string to be searched*@c: The character to search for
651  打印信息("use-after-free in strcmp\n")
652  strcmp(ptr, "2")
654  打印信息("use-after-free in strncmp\n")
655  字符串指定长度比较
657  打印信息("use-after-free in strlen\n")
658  strlen(ptr)
660  打印信息("use-after-free in strnlen\n")
661  strnlen(ptr, 1)
调用者
名称描述
kmalloc_tests_init