1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

games/openbor: yet another buffer overflow fix

This commit is contained in:
Jan Beich 2016-12-28 05:36:58 +00:00
parent bee2052610
commit 2277ee24a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=429712
2 changed files with 14 additions and 1 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= openbor
PORTVERSION= 3.0.r4420
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= LOCAL/jbeich \
https://svn.code.sf.net/p/${PORTNAME}/engine/engine/:svn

View File

@ -0,0 +1,13 @@
Don't crash with > 80 tracks.
--- source/gamelib/packfile.h.orig 2015-04-18 21:22:03 UTC
+++ source/gamelib/packfile.h
@@ -42,7 +42,7 @@ typedef struct fileliststruct
{
char filename[128];
int nTracks;
- char bgmFileName[80][256];
+ char bgmFileName[256][80];
int bgmTrack;
unsigned int bgmTracks[256];
#ifdef SDL