函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Validate that the next four input bytes match the value of s->crc32.

函数原型:static enum xz_ret crc32_validate(struct xz_dec *s, struct xz_buf *b)

返回类型:enum xz_ret

参数:

类型参数名称
struct xz_dec *s>pos must be zero when starting to validate the first byte.
struct xz_buf *b
348  循环
349  如果in_pos恒等于in_size则返回:XZ_OK
352  如果 CRC32 value in Block or Index 右移 Position in variable-length integers and Check fields 位按位与0xFF的值不等于in[in_pos++]则返回:XZ_DATA_ERROR
355  Position in variable-length integers and Check fields 加等于8
357  Position in variable-length integers and Check fields 小于32循环
359  CRC32 value in Block or Index 等于0
360  Position in variable-length integers and Check fields 等于0
362  返回:XZ_STREAM_END
调用者
名称描述
dec_main