packages: libgnomesu/libgnomesu-memory-cleaning.patch (NEW) - merged from O...
hawk
hawk at pld-linux.org
Thu Nov 25 10:42:39 CET 2010
Author: hawk Date: Thu Nov 25 09:42:39 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- merged from OpenSUSE: let GTK+ remove passwords from memory
---- Files affected:
packages/libgnomesu:
libgnomesu-memory-cleaning.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/libgnomesu/libgnomesu-memory-cleaning.patch
diff -u /dev/null packages/libgnomesu/libgnomesu-memory-cleaning.patch:1.1
--- /dev/null Thu Nov 25 10:42:39 2010
+++ packages/libgnomesu/libgnomesu-memory-cleaning.patch Thu Nov 25 10:42:34 2010
@@ -0,0 +1,27 @@
+Index: libgnomesu-1.0.0/src/gnomesu-auth-dialog.c
+===================================================================
+--- libgnomesu-1.0.0.orig/src/gnomesu-auth-dialog.c
++++ libgnomesu-1.0.0/src/gnomesu-auth-dialog.c
+@@ -206,6 +206,14 @@ create_stock_button (const gchar *stock,
+ static void
+ clear_entry (GtkWidget *entry)
+ {
++#if GTK_CHECK_VERSION(2,18,0)
++ /* With GTK+ 2.18, GtkEntry uses a GtkEntryBuffer which cleans the
++ * memory for passwords. See trash_area() in gtkentrybuffer.c.
++ * The code below actually creates some bugs, like
++ * https://bugzilla.novell.com/show_bug.cgi?id=351917 so we shouldn't
++ * use it, if possible. */
++ gtk_entry_set_text (GTK_ENTRY (entry), "");
++#else
+ gchar *blank;
+ size_t len;
+
+@@ -222,6 +230,7 @@ clear_entry (GtkWidget *entry)
+
+ gtk_entry_set_text (GTK_ENTRY (entry), "");
+ if (blank) g_free (blank);
++#endif
+ }
+
+ void
================================================================
More information about the pld-cvs-commit
mailing list