Lines Matching refs:len

13         size_t len;  in load_bcd()  local
17 …ssert_se(read_full_file_full(AT_FDCWD, fn, UINT64_MAX, SIZE_MAX, 0, NULL, &compressed, &len) >= 0); in load_bcd()
18 assert_se(decompress_blob_zstd(compressed, len, ret_bcd, ret_bcd_len, SIZE_MAX) >= 0); in load_bcd()
26 size_t len; in test_get_bcd_title_one() local
31 load_bcd(path, &bcd, &len); in test_get_bcd_title_one()
33 char16_t *title = get_bcd_title(bcd, len); in test_get_bcd_title_one()
55 size_t len; in TEST() local
60 load_bcd("test-bcd/win10.bcd.zst", (void **) &bcd, &len); in TEST()
64 assert_se(get_bcd_title(bcd_base, len)); in TEST()
71 assert_se(!get_bcd_title(bcd_base, len)); in TEST()
75 assert_se(!get_bcd_title(bcd_base, len)); in TEST()
79 assert_se(!get_bcd_title(bcd_base, len)); in TEST()
83 assert_se(!get_bcd_title(bcd_base, len)); in TEST()
87 assert_se(!get_bcd_title(bcd_base, len)); in TEST()
92 size_t len; in TEST() local
98 load_bcd("test-bcd/corrupt.bcd.zst", &bcd, &len); in TEST()
100 assert_se(len >= HIVE_CELL_OFFSET); in TEST()
102 len -= HIVE_CELL_OFFSET; in TEST()
105 const Key *root = get_key(hbins, len, offset, "\0"); in TEST()
109 assert_se(!get_key(hbins, len, offset, "\0BadOffset\0")); in TEST()
110 assert_se(!get_key(hbins, len, offset, "\0BadSig\0")); in TEST()
111 assert_se(!get_key(hbins, len, offset, "\0BadKeyNameLen\0")); in TEST()
112 assert_se(!get_key(hbins, len, offset, "\0SubkeyBadOffset\0Dummy\0")); in TEST()
113 assert_se(!get_key(hbins, len, offset, "\0SubkeyBadSig\0Dummy\0")); in TEST()
114 assert_se(!get_key(hbins, len, offset, "\0SubkeyBadNEntries\0Dummy\0")); in TEST()
116 assert_se(!get_key_value(hbins, len, root, "Dummy")); in TEST()
118 const Key *kv_bad_offset = get_key(hbins, len, offset, "\0KeyValuesBadOffset\0"); in TEST()
120 assert_se(!get_key_value(hbins, len, kv_bad_offset, "Dummy")); in TEST()
122 const Key *kv_bad_n_key_values = get_key(hbins, len, offset, "\0KeyValuesBadNKeyValues\0"); in TEST()
124 assert_se(!get_key_value(hbins, len, kv_bad_n_key_values, "Dummy")); in TEST()
126 const Key *kv = get_key(hbins, len, offset, "\0KeyValues\0"); in TEST()
129 assert_se(!get_key_value(hbins, len, kv, "BadOffset")); in TEST()
130 assert_se(!get_key_value(hbins, len, kv, "BadSig")); in TEST()
131 assert_se(!get_key_value(hbins, len, kv, "BadNameLen")); in TEST()
132 assert_se(!get_key_value(hbins, len, kv, "InlineData")); in TEST()
133 assert_se(!get_key_value(hbins, len, kv, "BadDataOffset")); in TEST()
134 assert_se(!get_key_value(hbins, len, kv, "BadDataSize")); in TEST()
139 size_t len; in TEST() local
150 &len) >= 0); in TEST()
152 char16_t *title = get_bcd_title(bcd, len); in TEST()