Function report |
Source Code:security\apparmor\policy_unpack.c |
Create Date:2022-07-28 19:52:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static size_t unpack_u16_chunk(struct aa_ext *e, char **chunk)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct aa_ext * | e | |
char ** | chunk |
224 | size = 0 |
227 | If Not st if read will be in packed data bounds Then Go to fail |
229 | size = le16_to_cpu(get value from possibly mis-aligned location((__le16 * )pointer to current position in the buffer )) |
231 | If Not st if read will be in packed data bounds Then Go to fail |
235 | Return size |
237 | fail : |
239 | Return 0 |
Name | Describe |
---|---|
unpack_nameX | pack_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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |