Branch Coverage

third_party/modest/source/myfont/cmap.c
Criterion Covered Total %
branch 0 82 0.0


line true false branch
25 0 0 if(data_size < (offset + 260)) {
32 0 0 if(f0 == NULL) {
55 0 0 if(f4 == NULL)
60 0 0 if(data_size < offset) {
76 0 0 if(data_size < offset)
80 0 0 if((f4->endCount = (uint16_t *)myfont_calloc(mf, f4->segCount, sizeof(uint16_t))) == NULL)
83 0 0 if((f4->startCount = (uint16_t *)myfont_calloc(mf, f4->segCount, sizeof(uint16_t))) == NULL) {
88 0 0 if((f4->idDelta = (int16_t *)myfont_calloc(mf, f4->segCount, sizeof(int16_t))) == NULL) {
95 0 0 if((f4->idRangeOffset = (uint16_t *)myfont_calloc(mf, f4->segCount, sizeof(uint16_t))) == NULL) {
103 0 0 if((f4->glyphIdArray = (uint16_t *)myfont_calloc(mf, f4->numGlyphId, sizeof(uint16_t))) == NULL) {
113 0 0 for(uint16_t i = 0; i < f4->segCount; i++) {
119 0 0 for(uint16_t i = 0; i < f4->segCount; i++) {
123 0 0 for(uint16_t i = 0; i < f4->segCount; i++) {
127 0 0 for(uint16_t i = 0; i < f4->segCount; i++) {
131 0 0 for(uint16_t i = 0; i < f4->numGlyphId; i++) {
142 0 0 if(status)
145 0 0 if(codepoint < 256)
148 0 0 if(status)
158 0 0 if(status)
161 0 0 for(i = 0; i < f4->segCount; i++)
162 0 0 if(codepoint <= f4->endCount[i])
165 0 0 if(i >= f4->segCount || codepoint < f4->startCount[i]) {
0 0 if(i >= f4->segCount || codepoint < f4->startCount[i]) {
166 0 0 if(status)
172 0 0 if(f4->idRangeOffset[i] == 0) {
178 0 0 if(index < f4->numGlyphId) {
179 0 0 if(f4->glyphIdArray[index] != 0)
184 0 0 if(status)
195 0 0 for(i = 0; i < tcout; i++)
213 0 0 if(mf_status == MyFONT_STATUS_OK) {
214 0 0 if(status)
221 0 0 if(status)
232 0 0 if(table_offset == 0)
235 0 0 if((table_offset + 4) > data_size)
245 0 0 if(tcmap->header.numTables == 0)
251 0 0 if(data_size < (size_records + size_entries))
254 0 0 if((tcmap->records = (myfont_tcmap_record_t *)myfont_malloc(mf, size_records)) == NULL)
257 0 0 if((tcmap->entries = (myfont_tcmap_entry_t *)myfont_malloc(mf, size_entries)) == NULL) {
264 0 0 for(uint16_t i = 0; i < tcmap->header.numTables; i++) {
270 0 0 for(uint16_t i = 0; i < tcmap->header.numTables; i++)
274 0 0 if(data_size <= offset)