函数逻辑报告 |
Source Code:kernel\kexec_elf.c |
Create Date:2022-07-27 12:06:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:lf_is_phdr_sane - check that it is safe to use the program header*@buf_len: size of the buffer in which the ELF file is loaded.
函数原型:static bool elf_is_phdr_sane(const struct elf64_phdr *phdr, size_t buf_len)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct elf64_phdr * | phdr | |
| size_t | buf_len |
| 188 | 如果 Segment file offset 加 Segment size in file 小于 Segment file offset 则 |
| 189 | pr_debug("ELF segment location wraps around.\n") |
| 190 | 返回:false |
| 191 | 否则如果 Segment file offset 加 Segment size in file 大于buf_len则 |
| 192 | pr_debug("ELF segment not in file.\n") |
| 193 | 返回:false |
| 194 | 否则如果 Segment physical address 加 Segment size in memory 小于 Segment physical address 则 |
| 195 | pr_debug("ELF segment address wraps around.\n") |
| 196 | 返回:false |
| 199 | 返回:true |
| 名称 | 描述 |
|---|---|
| elf_read_phdr |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |