Home
last modified time | relevance | path

Searched refs:ctrl_len (Results 1 – 3 of 3) sorted by relevance

/external/bsdiff/
Dpatch_reader.cc71 int64_t ctrl_len = ParseInt64(patch_data + 8); in Init() local
75 if ((ctrl_len < 0) || (diff_len < 0) || (signed_newsize < 0) || in Init()
76 (static_cast<int64_t>(patch_size) - 32 < ctrl_len) || in Init()
77 (static_cast<int64_t>(patch_size) - 32 - ctrl_len < diff_len)) { in Init()
78 LOG(ERROR) << "Corrupt patch. ctrl_len: " << ctrl_len in Init()
96 ctrl_len)) { in Init()
97 LOG(ERROR) << "Failed to init ctrl stream, ctrl_len: " << ctrl_len; in Init()
101 offset += ctrl_len; in Init()
Dtest_utils.cc110 memcpy(&ctrl_len, contents.data() + 8, sizeof(ctrl_len)); in LoadFromFile()
115 TEST_AND_RETURN_FALSE(ctrl_len >= 0); in LoadFromFile()
120 static_cast<uint64_t>(kHeaderSize + ctrl_len + diff_len)); in LoadFromFile()
121 extra_len = file_size - kHeaderSize - ctrl_len - diff_len; in LoadFromFile()
124 bz2_ctrl = vector<uint8_t>(ptr, ptr + ctrl_len); in LoadFromFile()
125 ptr += ctrl_len; in LoadFromFile()
134 TEST_AND_RETURN_FALSE(ctrl_len >= 0); in IsValid()
Dtest_utils.h71 int64_t ctrl_len = -1; member