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

Function header_ignored

src/filegen.c:1038–1048  ·  view source on GitHub ↗

@ @ requires \separated(file_recovery_new, &offset_skipped_header); @ assigns offset_skipped_header; @*/

Source from the content-addressed store, hash-verified

1036 @ assigns offset_skipped_header;
1037 @*/
1038void header_ignored(const file_recovery_t *file_recovery_new)
1039{
1040 if(file_recovery_new==NULL)
1041 {
1042 offset_skipped_header=0;
1043 return ;
1044 }
1045 /*@ assert \valid_read(file_recovery_new); */
1046 if(file_recovery_new->location.start < offset_skipped_header || offset_skipped_header==0)
1047 offset_skipped_header=file_recovery_new->location.start;
1048}
1049
1050/*@
1051 @ requires \separated(list_search_space, current_search_space, offset, &gpls_nbr, &offset_skipped_header);

Callers 15

header_check_gsmFunction · 0.85
header_check_gzFunction · 0.85
header_check_dadFunction · 0.85
header_check_myoFunction · 0.85
header_check_bvrFunction · 0.85
header_check_tiff_leFunction · 0.85
header_check_dvFunction · 0.85
photorec_auxFunction · 0.85
photorec_auxMethod · 0.85
header_check_oggFunction · 0.85
header_check_m2tsFunction · 0.85
header_check_mpg_PackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected