Lines Matching refs:sst

280 cdf_check_stream_offset(const cdf_stream_t *sst, const cdf_header_t *h,  in cdf_check_stream_offset()  argument
283 const char *b = (const char *)sst->sst_tab; in cdf_check_stream_offset()
285 size_t ss = sst->sst_dirlen < h->h_min_size_standard_stream ? in cdf_check_stream_offset()
288 if (e >= b && (size_t)(e - b) <= ss * sst->sst_len) in cdf_check_stream_offset()
293 ss * sst->sst_len, ss, sst->sst_len)); in cdf_check_stream_offset()
369 cdf_read_short_sector(const cdf_stream_t *sst, void *buf, size_t offs, in cdf_read_short_sector() argument
375 if (pos + len > CDF_SEC_SIZE(h) * sst->sst_len) { in cdf_read_short_sector()
378 pos + len, CDF_SEC_SIZE(h) * sst->sst_len)); in cdf_read_short_sector()
382 ((const char *)sst->sst_tab) + pos, len); in cdf_read_short_sector()
559 const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_read_short_sector_chain() argument
566 if (sst->sst_tab == NULL || scn->sst_len == (size_t)-1) in cdf_read_short_sector_chain()
586 if (cdf_read_short_sector(sst, scn->sst_tab, i * ss, ss, h, in cdf_read_short_sector_chain()
601 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_read_sector_chain() argument
605 if (len < h->h_min_size_standard_stream && sst->sst_tab != NULL) in cdf_read_sector_chain()
606 return cdf_read_short_sector_chain(h, ssat, sst, sid, len, in cdf_read_sector_chain()
751 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_read_summary_info() argument
754 return cdf_read_user_stream(info, h, sat, ssat, sst, dir, in cdf_read_summary_info()
760 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_read_user_stream() argument
770 return cdf_read_sector_chain(info, h, sat, ssat, sst, in cdf_read_user_stream()
793 cdf_read_property_info(const cdf_stream_t *sst, const cdf_header_t *h, in cdf_read_property_info() argument
813 ((const char *)sst->sst_tab + offs)); in cdf_read_property_info()
814 if (cdf_check_stream_offset(sst, h, shp, sizeof(*shp), __LINE__) == -1) in cdf_read_property_info()
845 ((const char *)(const void *)sst->sst_tab + in cdf_read_property_info()
849 if (cdf_check_stream_offset(sst, h, e, 0, __LINE__) == -1) in cdf_read_property_info()
854 if (cdf_check_stream_offset(sst, h, p, tail * sizeof(uint32_t), in cdf_read_property_info()
997 cdf_unpack_summary_info(const cdf_stream_t *sst, const cdf_header_t *h, in cdf_unpack_summary_info() argument
1002 CAST(const cdf_summary_info_header_t *, sst->sst_tab); in cdf_unpack_summary_info()
1005 ((const char *)sst->sst_tab + CDF_SECTION_DECLARATION_OFFSET)); in cdf_unpack_summary_info()
1007 if (cdf_check_stream_offset(sst, h, si, sizeof(*si), __LINE__) == -1 || in cdf_unpack_summary_info()
1008 cdf_check_stream_offset(sst, h, sd, sizeof(*sd), __LINE__) == -1) in cdf_unpack_summary_info()
1019 if (cdf_read_property_info(sst, h, CDF_TOLE4(sd->sd_offset), info, in cdf_unpack_summary_info()
1035 cdf_unpack_catalog(const cdf_header_t *h, const cdf_stream_t *sst, in cdf_unpack_catalog() argument
1038 size_t ss = sst->sst_dirlen < h->h_min_size_standard_stream ? in cdf_unpack_catalog()
1040 const char *b = CAST(const char *, sst->sst_tab); in cdf_unpack_catalog()
1041 const char *eb = b + ss * sst->sst_len; in cdf_unpack_catalog()
1059 b = CAST(const char *, sst->sst_tab); in cdf_unpack_catalog()
1254 cdf_dump_stream(const cdf_header_t *h, const cdf_stream_t *sst) in cdf_dump_stream() argument
1256 size_t ss = sst->sst_dirlen < h->h_min_size_standard_stream ? in cdf_dump_stream()
1258 cdf_dump(sst->sst_tab, ss * sst->sst_len); in cdf_dump_stream()
1263 const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, in cdf_dump_dir() argument
1303 if (sst == NULL) in cdf_dump_dir()
1305 if (cdf_read_sector_chain(info, h, sat, ssat, sst, in cdf_dump_dir()
1392 cdf_dump_summary_info(const cdf_header_t *h, const cdf_stream_t *sst) in cdf_dump_summary_info() argument
1400 if (cdf_unpack_summary_info(sst, h, &ssi, &info, &count) == -1) in cdf_dump_summary_info()
1415 cdf_dump_catalog(const cdf_header_t *h, const cdf_stream_t *sst) in cdf_dump_catalog() argument
1418 cdf_unpack_catalog(h, sst, &cat); in cdf_dump_catalog()
1443 cdf_stream_t sst, scn; in main() local
1480 if (cdf_read_short_stream(&info, &h, &sat, &dir, &sst, &root) in main()
1484 cdf_dump_stream(&h, &sst); in main()
1488 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir); in main()
1492 if (cdf_read_summary_info(&info, &h, &sat, &ssat, &sst, &dir, in main()
1499 if (cdf_read_catalog(&info, &h, &sat, &ssat, &sst, &dir, in main()