소스 검색

Fix possible buffer overflow in LoadBMFont

Width specifier doesn't include NUL terminator.
Fixes #487 found by AddressSanitizer.
pull/495/head
Ahmad Fatoum 7 년 전
부모
커밋
76aca9b0d1
No known key found for this signature in database GPG 키 ID: C3EAC3DE9321D59B
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/text.c

+ 1
- 1
src/text.c 파일 보기

@ -708,7 +708,7 @@ static SpriteFont LoadBMFont(const char *fileName)
int fontSize = 0;
int texWidth, texHeight;
char texFileName[128];
char texFileName[129];
int charsCount = 0;
int base; // Useless data

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