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:
parent
bee2052610
commit
2277ee24a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=429712
@ -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
|
||||
|
13
games/openbor/files/patch-source_gamelib_packfile.h
Normal file
13
games/openbor/files/patch-source_gamelib_packfile.h
Normal 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
|
Loading…
Reference in New Issue
Block a user