svn commit: r429712 - in head/games/openbor: . files

Jan Beich jbeich at FreeBSD.org
Wed Dec 28 05:37:00 UTC 2016


Author: jbeich
Date: Wed Dec 28 05:36:58 2016
New Revision: 429712
URL: https://svnweb.freebsd.org/changeset/ports/429712

Log:
  games/openbor: yet another buffer overflow fix

Added:
  head/games/openbor/files/patch-source_gamelib_packfile.h   (contents, props changed)
Modified:
  head/games/openbor/Makefile   (contents, props changed)

Modified: head/games/openbor/Makefile
==============================================================================
--- head/games/openbor/Makefile	Wed Dec 28 05:30:38 2016	(r429711)
+++ head/games/openbor/Makefile	Wed Dec 28 05:36:58 2016	(r429712)
@@ -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

Added: head/games/openbor/files/patch-source_gamelib_packfile.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/openbor/files/patch-source_gamelib_packfile.h	Wed Dec 28 05:36:58 2016	(r429712)
@@ -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


More information about the svn-ports-head mailing list