소스 검색

* Fixed abusive strictness in the font loader.

tags/v0.99.beta14
Sam Hocevar sam 19 년 전
부모
커밋
3af72ff5f8
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      cucul/font.c

+ 3
- 3
cucul/font.c 파일 보기

@@ -180,8 +180,8 @@ cucul_font_t *cucul_load_font(void const *data, unsigned int size)

if(f->glyph_list[i].data_offset >= f->header.data_size
|| f->glyph_list[i].data_offset
+ f->glyph_list[i].width * f->glyph_list[i].height *
f->header.bpp / 8 >= f->header.data_size)
+ (f->glyph_list[i].width * f->glyph_list[i].height *
f->header.bpp + 7) / 8 > f->header.data_size)
{
free(f->glyph_list);
free(f->block_list);
@@ -433,4 +433,4 @@ void cucul_render_canvas(cucul_t *qq, cucul_font_t *f,
* };
*/

#endif
#endif

불러오는 중...
취소
저장