Branch Coverage

third_party/modest/source/myfont/glyf.c
Criterion Covered Total %
branch 0 70 0.0


line true false branch
27 0 0 if(mf->cache.tables_offset[MyFONT_TKEY_glyf] == 0)
30 0 0 if(mf->table_maxp.numGlyphs == 0)
35 0 0 if(glyphs == NULL)
38 0 0 for(uint16_t i = 0; i < mf->table_maxp.numGlyphs; i++)
43 0 0 if(status)
56 0 0 if(mf->table_maxp.numGlyphs == 0)
74 0 0 if(offset > data_size)
83 0 0 if(glyph->head.numberOfContours > 0)
93 0 0 if(endPtsOfContours == NULL)
98 0 0 if(offset > data_size)
101 0 0 for(uint16_t i = 0; i < glyph->head.numberOfContours; i++) {
111 0 0 if(offset > data_size)
114 0 0 if(glyph->simple.instructionLength) {
117 0 0 if(glyph->simple.instructions == NULL)
131 0 0 if(flags == NULL)
135 0 0 while(i < glyph->pointCount)
137 0 0 if(offset >= data_size) {
144 0 0 if(flags[i] & MyFONT_GLYF_SML_FLAGS_repeat)
146 0 0 if(offset >= data_size) {
154 0 0 if(repeat > (glyph->pointCount - i)) {
159 0 0 while(repeat--) {
178 0 0 if(xCoordinates == NULL)
182 0 0 if(yCoordinates == NULL) {
191 0 0 for(uint16_t i = 0; i < glyph->pointCount; i++)
193 0 0 if(flags[i] & MyFONT_GLYF_SML_FLAGS_x_ShortVector)
195 0 0 if(offset >= data_size) {
201 0 0 if(flags[i] & MyFONT_GLYF_SML_FLAGS_p_x_ShortVector) {
212 0 0 if(offset >= data_size) {
218 0 0 if(flags[i] & MyFONT_GLYF_SML_FLAGS_p_x_ShortVector) {
231 0 0 for(uint16_t i = 0; i < glyph->pointCount; i++)
233 0 0 if(flags[i] & MyFONT_GLYF_SML_FLAGS_y_ShortVector)
235 0 0 if(offset >= data_size) {
241 0 0 if(flags[i] & MyFONT_GLYF_SML_FLAGS_p_y_ShortVector) {
251 0 0 if(offset >= data_size) {
257 0 0 if(flags[i] & MyFONT_GLYF_SML_FLAGS_p_y_ShortVector) {