[packages/brikx] Rel 3

arekm arekm at pld-linux.org
Wed May 20 21:27:54 CEST 2026


commit 6332ee8616970687d7f63a8fc9064382436e2201
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed May 20 21:27:37 2026 +0200

    Rel 3

 brikx-format-security.patch | 11 +++++++++++
 brikx.spec                  |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/brikx.spec b/brikx.spec
index 3e5cf16..d01cb8b 100644
--- a/brikx.spec
+++ b/brikx.spec
@@ -2,11 +2,12 @@ Summary:	Puzzle game
 Summary(pl.UTF-8):	Gra logiczna
 Name:		brikx
 Version:	0.4.5
-Release:	2
+Release:	3
 License:	GPL v2+
 Group:		X11/Applications/Games
 Source0:	http://dl.sourceforge.net/brikx/0.4.5/%{name}.tar.bz2
 # Source0-md5:	faccd4420ea1d24eea3e4f9829f03c64
+Patch0:		%{name}-format-security.patch
 URL:		http://sourceforge.net/projects/brikx/
 BuildRequires:	SDL-devel
 BuildRequires:	SDL_image-devel
@@ -31,6 +32,7 @@ oraz inne rzeczy.
 
 %prep
 %setup -q -n %{name}
+%patch -P0 -p1
 %{__sed} -i 's at data@%{_datadir}/%{name}@' src/brikx.h
 
 %build
diff --git a/brikx-format-security.patch b/brikx-format-security.patch
new file mode 100644
index 0000000..1909338
--- /dev/null
+++ b/brikx-format-security.patch
@@ -0,0 +1,11 @@
+--- brikx.orig/src/brikx.cpp	2026-05-20 21:26:07.658243089 +0200
++++ brikx/src/brikx.cpp	2026-05-20 21:26:16.549550806 +0200
+@@ -122,7 +122,7 @@
+       }
+     for (i=0; i<MODES; i++)
+       fprintf(f,"%d\n",m[i]);
+-    if (text) fprintf(f,text);
++    if (text) fputs(text,f);
+     fclose(f);
+     return 1;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/brikx.git/commitdiff/6332ee8616970687d7f63a8fc9064382436e2201



More information about the pld-cvs-commit mailing list