MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / get_next_header

Function get_next_header

src/pnext.h:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35inline
36#endif
37void get_next_header(const alloc_data_t *list_search_space, alloc_data_t **current_search_space, uint64_t *offset)
38{
39#ifdef DEBUG_GET_NEXT_SECTOR
40 log_trace(" get_next_header %llu (%llu-%llu)\n",
41 (unsigned long long)((*offset)/512),
42 (unsigned long long)((*current_search_space)->start/512),
43 (unsigned long long)((*current_search_space)->end)/512);
44#endif
45 if((*current_search_space) != list_search_space)
46 *current_search_space=td_list_entry((*current_search_space)->list.next, alloc_data_t, list);
47 *offset=(*current_search_space)->start;
48}
49
50/*@
51 @ requires \valid_read(list_search_space);

Callers 2

get_next_sectorFunction · 0.85
photorec_bf_fragFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected