- /* Read the integrity table into memory. */
- table = MALLOC((size_t)res_entry->size);
- if (table == NULL) {
- ERROR("Can't allocate %zu bytes for integrity table",
- (size_t)res_entry->size);
- return WIMLIB_ERR_NOMEM;
- }
-
- if (full_pread(in_fd, table, res_entry->size,
- res_entry->offset) != res_entry->size)
- {
- ERROR("Failed to read integrity table (size = %zu, "
- " offset = %"PRIu64")",
- (size_t)res_entry->size, res_entry->offset);
- ret = WIMLIB_ERR_READ;
- goto out_free_table;
- }