Преглед на файлове

Fix possible buffer overflow in LoadBMFont

Width specifier doesn't include NUL terminator.
Fixes #487 found by AddressSanitizer.
pull/495/head
Ahmad Fatoum преди 8 години
родител
ревизия
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

Зареждане…
Отказ
Запис