[packages/tigervnc] - updated for 1.3.0

hawk hawk at pld-linux.org
Thu Jul 18 18:05:21 CEST 2013


commit 560b508f28e23cb217ca7ec57dae9612bce3f692
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Thu Jul 18 16:13:39 2013 +0000

    - updated for 1.3.0

 format-security.patch | 70 ++++++---------------------------------------------
 1 file changed, 8 insertions(+), 62 deletions(-)
---
diff --git a/format-security.patch b/format-security.patch
index edb7bdf..cbd58ca 100644
--- a/format-security.patch
+++ b/format-security.patch
@@ -1,65 +1,11 @@
---- tigervnc-1.2.0/vncviewer/CConn.cxx~	2011-11-15 13:13:37.000000000 +0100
-+++ tigervnc-1.2.0/vncviewer/CConn.cxx	2012-09-23 13:24:39.673278615 +0200
-@@ -100,7 +100,7 @@
-     vlog.info(_("connected to host %s port %d"), serverHost, serverPort);
-   } catch (rdr::Exception& e) {
-     vlog.error(e.str());
--    fl_alert(e.str());
-+    fl_alert("%s", e.str());
-     exit_vncviewer();
-     return;
-   }
---- tigervnc-1.2.0/vncviewer/UserDialog.cxx~	2012-09-23 13:22:47.929949225 +0200
-+++ tigervnc-1.2.0/vncviewer/UserDialog.cxx	2012-09-23 13:25:45.533276293 +0200
-@@ -167,16 +167,16 @@
- 
-   switch (flags & 0xf) {
-   case M_OKCANCEL:
--    return fl_choice(buffer, NULL, fl_ok, fl_cancel) == 1;
-+    return fl_choice("%s", buffer, NULL, fl_ok, fl_cancel) == 1;
-   case M_YESNO:
--    return fl_choice(buffer, NULL, fl_yes, fl_no) == 1;
-+    return fl_choice("%s", buffer, NULL, fl_yes, fl_no) == 1;
-   case M_OK:
-   default:
-     if (((flags & 0xf0) == M_ICONERROR) ||
-         ((flags & 0xf0) == M_ICONWARNING))
--      fl_alert(buffer);
-+      fl_alert("%s", buffer);
-     else
--      fl_message(buffer);
-+      fl_message("%s", buffer);
-     return true;
-   }
- 
---- tigervnc-1.2.0/vncviewer/Viewport.cxx~	2012-01-05 13:37:04.000000000 +0100
-+++ tigervnc-1.2.0/vncviewer/Viewport.cxx	2012-09-23 13:26:09.889942100 +0200
-@@ -950,7 +950,7 @@
-   case ID_INFO:
-     if (fltk_escape(cc->connectionInfo(), buffer, sizeof(buffer)) < sizeof(buffer)) {
-       fl_message_title(_("VNC connection info"));
--      fl_message(buffer);
-+      fl_message("%s", buffer);
-     }
-     break;
-   case ID_ABOUT:
---- tigervnc-1.2.0/vncviewer/vncviewer.cxx~	2011-10-12 22:02:55.000000000 +0200
-+++ tigervnc-1.2.0/vncviewer/vncviewer.cxx	2012-09-23 13:26:46.729940794 +0200
-@@ -86,7 +86,7 @@
- void about_vncviewer()
- {
-   fl_message_title(_("About TigerVNC Viewer"));
--  fl_message(aboutText);
-+  fl_message("%s", aboutText);
- }
- 
- static void about_callback(Fl_Widget *widget, void *data)
-@@ -311,7 +311,7 @@
-   delete cc;
- 
-   if (exitError != NULL)
--    fl_alert(exitError);
-+    fl_alert("%s", exitError);
+--- tigervnc-1.3.0/vncviewer/vncviewer.cxx.orig	2013-07-01 12:42:05.000000000 +0000
++++ tigervnc-1.3.0/vncviewer/vncviewer.cxx	2013-07-18 13:01:58.387116062 +0000
+@@ -304,7 +304,7 @@
+ 
+   snprintf(vncServerName, VNCSERVERNAMELEN, "localhost::%d", localPort);
+   vncServerName[VNCSERVERNAMELEN - 1] = '\0';
+-  vlog.error(vncServerName);
++  vlog.error("%s", vncServerName);
  
    return 0;
  }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tigervnc.git/commitdiff/ea73831e4b9179b53a4e8c9b6b5091ddd28835f8



More information about the pld-cvs-commit mailing list