函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: : size of entropy tables read

函数原型:static size_t ZSTD_loadEntropy(ZSTD_entropyTables_t *entropy, const void *const dict, size_t const dictSize)

返回类型:size_t

参数:

类型参数名称
ZSTD_entropyTables_t *entropy
const void *constdict must point at beginning of a valid zstd dictionary
size_t constdictSize

摘要:ZSTD_loadEntropy() :

1876  dictPtr等于 must point at beginning of a valid zstd dictionary
1877  dictEnd等于dictPtrdictSize
1879  如果dictSize小于等于8则返回:-***************************************** Error codes handling(dictionary_corrupted)
1881  dictPtr加等于8
1884  hSize等于HUF_readDTableX4_wksp(hufTable, dictPtr, dictEnd - dictPtr, workspace, workspace的长度)
1885  如果HUF_isError(hSize)则返回:-***************************************** Error codes handling(dictionary_corrupted)
1887  dictPtr加等于hSize
1892  offcodeMaxValue等于MaxOff
1893  offcodeHeaderSize等于-*************************************************************** FSE NCount encoding-decoding
1894  如果=== Error Management ===则返回:-***************************************** Error codes handling(dictionary_corrupted)
1896  如果offcodeLog大于OffFSELog则返回:-***************************************** Error codes handling(dictionary_corrupted)
1899  dictPtr加等于offcodeHeaderSize
1904  matchlengthMaxValue等于MaxML
1905  matchlengthHeaderSize等于-*************************************************************** FSE NCount encoding-decoding
1906  如果=== Error Management ===则返回:-***************************************** Error codes handling(dictionary_corrupted)
1908  如果matchlengthLog大于MLFSELog则返回:-***************************************** Error codes handling(dictionary_corrupted)
1911  dictPtr加等于matchlengthHeaderSize
1916  litlengthMaxValue等于MaxLL
1917  litlengthHeaderSize等于-*************************************************************** FSE NCount encoding-decoding
1918  如果=== Error Management ===则返回:-***************************************** Error codes handling(dictionary_corrupted)
1920  如果litlengthLog大于LLFSELog则返回:-***************************************** Error codes handling(dictionary_corrupted)
1923  dictPtr加等于litlengthHeaderSize
1926  如果dictPtr加12大于dictEnd则返回:-***************************************** Error codes handling(dictionary_corrupted)
1930  dictContentSize等于dictEnddictPtr加12
1931 i小于3循环
1932  rep等于ZSTD_readLE32(dictPtr)
1933  dictPtr加等于4
1936  rep[i]等于rep
1940  返回:dictPtr must point at beginning of a valid zstd dictionary
调用者
名称描述
ZSTD_decompress_insertDictionary
ZSTD_loadEntropy_inDDict