|
|
@ -1828,7 +1828,7 @@ static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, s |
|
|
|
if (comp_verts) STBTT_free(comp_verts, info->userdata); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
if (num_vertices > 0) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); |
|
|
|
if (num_vertices > 0) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); //-V595
|
|
|
|
STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); |
|
|
|
if (vertices) STBTT_free(vertices, info->userdata); |
|
|
|
vertices = tmp; |
|
|
@ -2199,7 +2199,7 @@ static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, st |
|
|
|
} break; |
|
|
|
|
|
|
|
default: |
|
|
|
if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) |
|
|
|
if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) //-V560
|
|
|
|
return STBTT__CSERR("reserved operator"); |
|
|
|
|
|
|
|
// push immediate
|
|
|
|