diff options
| author | Ahmad Fatoum <[email protected]> | 2018-02-25 02:55:32 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-02-25 03:03:37 +0100 |
| commit | 76aca9b0d1f8409b055c858d0a9c5a9fff00d007 (patch) | |
| tree | a49fc3ba6831ddd2f70dbe5dd41608bcb4015933 /src | |
| parent | c5f78636898d3f988cecc0bf876763252c484317 (diff) | |
| download | raylib-76aca9b0d1f8409b055c858d0a9c5a9fff00d007.tar.gz raylib-76aca9b0d1f8409b055c858d0a9c5a9fff00d007.zip | |
Fix possible buffer overflow in LoadBMFont
Width specifier doesn't include NUL terminator.
Fixes #487 found by AddressSanitizer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
