Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\xz\xz_dec_stream.c Create Date:2022-07-28 07:08:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Validate that the next four input bytes match the value of s->crc32.

Proto:static enum xz_ret crc32_validate(struct xz_dec *s, struct xz_buf *b)

Type:enum xz_ret

Parameter:

TypeParameterName
struct xz_dec *s>pos must be zero when starting to validate the first byte.
struct xz_buf *b
348  Do
349  If in_pos == in_size Then Return XZ_OK
352  If ( CRC32 value in Block or Index >> Position in variable-length integers and Check fields & 0xFF) != in[in_pos++] Then Return XZ_DATA_ERROR
355  Position in variable-length integers and Check fields += 8
357  When Position in variable-length integers and Check fields < 32 cycle
359  CRC32 value in Block or Index = 0
360  Position in variable-length integers and Check fields = 0
362  Return XZ_STREAM_END
Caller
NameDescribe
dec_main