[packages/tn5250] - fixed format string errors - disabled python bindings (build broken)

baggins baggins at pld-linux.org
Fri Dec 6 08:23:20 CET 2013


commit d3e384210412a53774728dfb0ab73da113c938d6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Dec 6 08:22:54 2013 +0100

    - fixed format string errors
    - disabled python bindings (build broken)

 format-security.patch | 36 ++++++++++++++++++++++++++++++++++++
 tn5250.spec           |  5 +++--
 2 files changed, 39 insertions(+), 2 deletions(-)
---
diff --git a/tn5250.spec b/tn5250.spec
index 3ca4a40..1c2c850 100644
--- a/tn5250.spec
+++ b/tn5250.spec
@@ -8,6 +8,7 @@ License:	GPL
 Group:		Applications/Networking
 Source0:	http://downloads.sourceforge.net/tn5250/%{name}-%{version}.tar.gz
 # Source0-md5:	d1eb7c5a2e15cd2f43a1c115e2734153
+Patch0:		format-security.patch
 URL:		http://tn5250.sourceforge.net/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -52,6 +53,7 @@ Statyczne biblioteki lib5250.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -60,8 +62,7 @@ Statyczne biblioteki lib5250.
 %{__automake}
 %{__autoconf}
 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
-%configure \
-	--with-python
+%configure
 %{__make}
 
 cd linux
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..6968060
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,36 @@
+--- tn5250-0.17.4/lib5250/sslstream.c~	2008-11-21 09:12:21.000000000 +0100
++++ tn5250-0.17.4/lib5250/sslstream.c	2013-12-06 08:11:12.765608943 +0100
+@@ -307,7 +307,7 @@
+ 
+    if (!tn5250_logfile)
+       return;
+-   fprintf(tn5250_logfile,ssl_getTelOpt(type=*buf++));
++   fprintf(tn5250_logfile,"%s",ssl_getTelOpt(type=*buf++));
+    switch (c=*buf++) {
+       case IS:
+ 		fputs("<IS>",tn5250_logfile);
+--- tn5250-0.17.4/lib5250/telnetstr.c~	2008-11-21 09:12:21.000000000 +0100
++++ tn5250-0.17.4/lib5250/telnetstr.c	2013-12-06 08:11:43.172275390 +0100
+@@ -282,7 +282,7 @@
+ 
+    if (!tn5250_logfile)
+       return;
+-   fprintf(tn5250_logfile,getTelOpt(type=*buf++));
++   fprintf(tn5250_logfile,"%s",getTelOpt(type=*buf++));
+    switch (c=*buf++) {
+       case IS:
+ 		fputs("<IS>",tn5250_logfile);
+--- tn5250-0.17.4/curses/cursesterm.c~	2008-11-21 09:12:20.000000000 +0100
++++ tn5250-0.17.4/curses/cursesterm.c	2013-12-06 08:12:28.862275059 +0100
+@@ -640,9 +640,9 @@
+       if(This->data->is_xterm) {
+          if (This->data->font_132!=NULL) {
+                if (tn5250_display_width (display)>100)
+-                    printf(This->data->font_132);
++                    printf("%s", This->data->font_132);
+                else
+-                    printf(This->data->font_80);
++                    printf("%s", This->data->font_80);
+          }
+ 	 printf ("\x1b[8;%d;%dt", tn5250_display_height (display)+1,
+ 	       tn5250_display_width (display));
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tn5250.git/commitdiff/d3e384210412a53774728dfb0ab73da113c938d6



More information about the pld-cvs-commit mailing list