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

Function check_exFAT

src/exfat.c:69–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69int check_exFAT(disk_t *disk, partition_t *partition)
70{
71 unsigned char *buffer=(unsigned char*)MALLOC(EXFAT_BS_SIZE);
72 if(disk->pread(disk, buffer, EXFAT_BS_SIZE, partition->part_offset) != EXFAT_BS_SIZE)
73 {
74 free(buffer);
75 return 1;
76 }
77 if(test_exFAT((struct exfat_super_block*)buffer)!=0)
78 {
79 free(buffer);
80 return 1;
81 }
82 set_exFAT_info(partition, (struct exfat_super_block*)buffer);
83 free(buffer);
84 return 0;
85}
86
87int test_exFAT(const struct exfat_super_block *exfat_header)
88{

Callers 3

check_part_gptFunction · 0.85
check_part_noneFunction · 0.85
check_part_i386Function · 0.85

Calls 3

MALLOCFunction · 0.85
test_exFATFunction · 0.85
set_exFAT_infoFunction · 0.85

Tested by

no test coverage detected