函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_u16_chunck - test and do bounds checking for a u16 size based chunk*@e: serialized data read head (NOT NULL)*@chunk: start address for chunk of data (NOT NULL)* Returns: the size of chunk found with the read head at the end of the chunk.

函数原型:static size_t unpack_u16_chunk(struct aa_ext *e, char **chunk)

返回类型:size_t

参数:

类型参数名称
struct aa_ext *e
char **chunk
224  size等于0
225  pos等于pointer to current position in the buffer
227  如果非st if read will be in packed data bounds 则转到:fail
229  size等于le16_to_cpu(get_unaligned((__le16 * )pointer to current position in the buffer ))
230  pointer to current position in the buffer 加等于sizeof(__le16)
231  如果非st if read will be in packed data bounds 则转到:fail
233  chunk等于pointer to current position in the buffer
234  pointer to current position in the buffer 加等于size
235  返回:size
237  fail :
238  pointer to current position in the buffer 等于pos
239  返回:0
调用者
名称描述
unpack_nameXpack_nameX - check is the next element is of type X with a name of @name*@e: serialized data extent information (NOT NULL)*@code: type code*@name: name to match to the serialized element
unpack_str