[packages/0verkill] Rel 6

arekm arekm at pld-linux.org
Mon Mar 9 22:17:27 CET 2026


commit dd1509fc8707f948f54e22a71e1e2e0dfdf728d4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 9 22:17:14 2026 +0100

    Rel 6

 0verkill-format-security.patch | 38 ++++++++++++++++++++++++++++++++++++++
 0verkill.spec                  |  6 +++++-
 2 files changed, 43 insertions(+), 1 deletion(-)
---
diff --git a/0verkill.spec b/0verkill.spec
index 5d7ff91..46545b0 100644
--- a/0verkill.spec
+++ b/0verkill.spec
@@ -2,13 +2,15 @@ Summary:	0verkill - ASCII-art multiplayer game
 Summary(pl.UTF-8):	0verkill - gra multiplayer w ASCII
 Name:		0verkill
 Version:	0.16
-Release:	5
+Release:	6
 License:	GPL
 Group:		Applications/Games
 Source0:	http://artax.karlin.mff.cuni.cz/~brain/0verkill/release/%{name}-%{version}.tgz
 #Source0-md5:	814097fc21a82723a40ec8ae5dd792a7
 Patch0:		%{name}-datadir.patch
 Patch1:		%{name}-etc_dir.patch
+# local patch: fix unsafe non-literal format string usage with modern hardening flags
+Patch2:		%{name}-format-security.patch
 URL:		http://artax.karlin.mff.cuni.cz/~brain/0verkill/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -37,10 +39,12 @@ Ten pakiet pozwala na uruchomienie klienta 0verkill w oknie X.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__aclocal}
 %{__autoconf}
+export CFLAGS="%{rpmcflags} -fcommon"
 %configure \
 	--with-x
 %{__make}
diff --git a/0verkill-format-security.patch b/0verkill-format-security.patch
new file mode 100644
index 0000000..a9bd724
--- /dev/null
+++ b/0verkill-format-security.patch
@@ -0,0 +1,38 @@
+--- 0verkill-0.16.orig/cfg.h	2001-12-16 16:48:56.000000000 +0100
++++ 0verkill-0.16/cfg.h	2026-03-09 00:00:00.000000000 +0100
+@@ -146,20 +146,20 @@
+ 	#undef ERROR
+ 	#ifdef SERVER
+ 		extern int			consoleApp;
+-		#define ERROR(a)	{if (!console_ok)c_shutdown();if(consoleApp)fprintf(stderr,a);}
++		#define ERROR(a)	{if (!console_ok)c_shutdown();if(consoleApp)fprintf(stderr,"%s",(const char *)(a));}
+ 		#define EXIT(a)		{if (!consoleApp)ReportStatusToSCMgr(SERVICE_STOPPED, NO_ERROR, 0);exit(a);}
+ 	#else
+-		#define ERROR(a)	{if (!console_ok)c_shutdown();fprintf(stderr,a);}
++		#define ERROR(a)	{if (!console_ok)c_shutdown();fprintf(stderr,"%s",(const char *)(a));}
+ 		#define EXIT(a)		{exit(a);}
+ 	#endif
+ 	#define random		rand
+ #else
+ 	#define long_long	long long
+ 	#ifdef CLIENT
+-		#define ERROR(a)	{if (!console_ok)c_shutdown();fprintf(stderr,a);}
++		#define ERROR(a)	{if (!console_ok)c_shutdown();fprintf(stderr,"%s",(const char *)(a));}
+ 	#else
+-		#define ERROR(a)	{fprintf(stderr,a);}
++		#define ERROR(a)	{fprintf(stderr,"%s",(const char *)(a));}
+ 	#endif
+ 	#define EXIT(a)		exit(a);
+ #endif
+ 
+ 
+--- 0verkill-0.16.orig/error.h	2001-12-16 16:48:56.000000000 +0100
++++ 0verkill-0.16/error.h	2026-03-09 00:00:00.000000000 +0100
+@@ -7,6 +7,7 @@
+ 
+ #include "cfg.h"
+ #include "config.h"
++#include <string.h>
+ 
+ #define DUMMY ((void *)-1L)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/0verkill.git/commitdiff/dd1509fc8707f948f54e22a71e1e2e0dfdf728d4



More information about the pld-cvs-commit mailing list