瀏覽代碼
Fix possible buffer overflow in LoadBMFont
Width specifier doesn't include NUL terminator.
Fixes #487 found by AddressSanitizer.
pull/495/head
Ahmad Fatoum
7 年之前
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: C3EAC3DE9321D59B
共有
1 個文件被更改,包括
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 |
|
|
|