rpms/pidgin/devel pidgin-2.5.1-buddyicon.patch, NONE, 1.1 pidgin-2.5.1-msn-hasyou.patch, NONE, 1.1 pidgin-2.5.1-nss-ssl.patch, NONE, 1.1 pidgin.spec, 1.59, 1.60

Stu Tomlinson nosnilmot at fedoraproject.org
Tue Sep 16 14:39:50 UTC 2008


Author: nosnilmot

Update of /cvs/pkgs/rpms/pidgin/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24985/devel

Modified Files:
	pidgin.spec 
Added Files:
	pidgin-2.5.1-buddyicon.patch pidgin-2.5.1-msn-hasyou.patch 
	pidgin-2.5.1-nss-ssl.patch 
Log Message:
- Backport fixes from upstream:
  Add "Has You:" back to MSN tooltips
  Fix crash during removal of your own buddy icon
  Fix crash when handling self signed certificate with NSS SSL



pidgin-2.5.1-buddyicon.patch:

--- NEW FILE pidgin-2.5.1-buddyicon.patch ---
-----------------------------------------------------------------
Revision: 21e781181213d3cb9f08fd3e74b9f452ef615f03
Ancestor: 48c5c9c72107408d63250fe0d7feb41f812a5d66
Author: qulogic at pidgin.im
Date: 2008-09-07T19:58:04
Branch: im.pidgin.pidgin

Modified files:
        libpurple/buddyicon.c libpurple/buddyicon.h

ChangeLog: 

Don't try to read data from a NULL filename in 
purple_buddy_icons_node_set_custom_icon_from_file. Also document that 
you can use NULL to unset the icon.

Fixes #6998.

============================================================
--- libpurple/buddyicon.c	18d12d638239af5082ec913211ade4a888b74af2
+++ libpurple/buddyicon.c	dbb00fa1c7275c14d773a9073830c5d0b41deca2
@@ -934,8 +934,8 @@ purple_buddy_icons_node_set_custom_icon_
 purple_buddy_icons_node_set_custom_icon_from_file(PurpleBlistNode *node,
                                                   const gchar *filename)
 {
-	size_t len;
-	guchar *data;
+	size_t len = 0;
+	guchar *data = NULL;
 
 	g_return_val_if_fail(node != NULL, NULL);
 
@@ -945,8 +945,10 @@ purple_buddy_icons_node_set_custom_icon_
 		return NULL;
 	}
 
-	if (!read_icon_file(filename, &data, &len)) {
-		return NULL;
+	if (filename != NULL) {
+		if (!read_icon_file(filename, &data, &len)) {
+			return NULL;
+		}
 	}
 
 	return purple_buddy_icons_node_set_custom_icon(node, data, len);
============================================================
--- libpurple/buddyicon.h	9833d0334d2e344c5b0924db76d2c268d3fb2042
+++ libpurple/buddyicon.h	15012fdc49959c5117aa9eb99b7649574d77db35
@@ -308,7 +308,7 @@ purple_buddy_icons_node_find_custom_icon
  *
  * @param node      The blist node for which to set a custom icon.
  * @param icon_data The image data of the icon, which the buddy icon code will
- *                  free.
+ *                  free. Use NULL to unset the icon.
  * @param icon_len  The length of the data in @a icon_data.
  *
  * @return The icon that was set. The caller does NOT own a reference to this,
@@ -326,7 +326,8 @@ purple_buddy_icons_node_set_custom_icon(
  * @see purple_buddy_icons_node_set_custom_icon()
  *
  * @param node      The blist node for which to set a custom icon.
- * @param filename  The path to the icon to set for the blist node.
+ * @param filename  The path to the icon to set for the blist node. Use NULL
+ *                  to unset the custom icon.
  *
  * @return The icon that was set. The caller does NOT own a reference to this,
  *         and must call purple_imgstore_ref() if it wants one.

pidgin-2.5.1-msn-hasyou.patch:

--- NEW FILE pidgin-2.5.1-msn-hasyou.patch ---
-----------------------------------------------------------------
Revision: 6a2fea9024166e4d473b00a87489c720617e3094
Ancestor: 99a1dadde07d817852916ae3c150683b6b8c4f81
Author: qulogic at pidgin.im
Date: 2008-09-06T02:57:57
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/msn/msn.c

ChangeLog: 

We can't have ./configure lying to you, can we?

Fixes #6637.

============================================================
--- libpurple/protocols/msn/msn.c	5ced63fdc012e5df5bcd46ade1efd81be14e6344
+++ libpurple/protocols/msn/msn.c	04fad6deed88391af6dba93608670cf94724bf97
@@ -769,6 +769,9 @@ msn_tooltip_text(PurpleBuddy *buddy, Pur
 	{
 		const char *phone;
 
+		purple_notify_user_info_add_pair(user_info, _("Has you"),
+									   ((user->list_op & (1 << MSN_LIST_RL)) ? _("Yes") : _("No")));
+
 		purple_notify_user_info_add_pair(user_info, _("Blocked"),
 									   ((user->list_op & (1 << MSN_LIST_BL)) ? _("Yes") : _("No")));
 

pidgin-2.5.1-nss-ssl.patch:

--- NEW FILE pidgin-2.5.1-nss-ssl.patch ---
-----------------------------------------------------------------
Revision: 3cbc74478c8df61d53804d0363dc936a3e0adeb7
Ancestor: 254e5a24031a74103097db812ae3e723d696c11d
Author: datallah at pidgin.im
Date: 2008-09-08T23:04:15
Branch: im.pidgin.pidgin

Modified files:
        libpurple/plugins/ssl/ssl-nss.c

ChangeLog: 

Fix a NULL pointer deref in the NSS SSL implementation with certain self-signed
certs.
Fixes #7013

============================================================
--- libpurple/plugins/ssl/ssl-nss.c	c6c576ba92370703e89850d8e6dc88b7fec3e523
+++ libpurple/plugins/ssl/ssl-nss.c	d6de7a59c8b1c42086fd8e7153865718fc3289e6
@@ -285,7 +285,8 @@ ssl_nss_get_peer_certificates(PRFileDesc
 	}
 	
 	for (count = 0 ; count < CERT_MAX_CERT_CHAIN ; count++) {
-		purple_debug_info("nss", "subject=%s issuer=%s\n", curcert->subjectName, curcert->issuerName);
+		purple_debug_info("nss", "subject=%s issuer=%s\n", curcert->subjectName,
+						  curcert->issuerName  ? curcert->issuerName : "(null)");
 		newcrt = x509_import_from_nss(curcert);
 		peer_certs = g_list_append(peer_certs, newcrt);
 
@@ -676,7 +677,8 @@ x509_signed_by(PurpleCertificate * crt,
 	subjectCert = X509_NSS_DATA(crt);
 	g_return_val_if_fail(subjectCert, FALSE);
 
-	if ( PORT_Strcmp(subjectCert->issuerName, issuerCert->subjectName) != 0 )
+	if (subjectCert->issuerName == NULL
+			|| PORT_Strcmp(subjectCert->issuerName, issuerCert->subjectName) != 0)
 		return FALSE;
 	st = CERT_VerifySignedData(&subjectCert->signatureWrap, issuerCert, PR_Now(), NULL);
 	return st == SECSuccess;


Index: pidgin.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pidgin/devel/pidgin.spec,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- pidgin.spec	16 Sep 2008 13:28:31 -0000	1.59
+++ pidgin.spec	16 Sep 2008 14:39:20 -0000	1.60
@@ -29,7 +29,7 @@
 
 Name:		pidgin
 Version:	2.5.1
-Release:	2%{?dist}
+Release:	3%{?dist}
 License:        GPLv2+ and GPLv2 and MIT
 # GPLv2+ - libpurple, gnt, finch, pidgin, most prpls
 # GPLv2 - silc & novell prpls
@@ -63,6 +63,10 @@
 
 ## Patches 100+: To be Included in Future Upstream
 Patch100:       pidgin-2.5.1-gnomeproxy.patch
+Patch101:       pidgin-2.5.1-buddyicon.patch
+Patch102:       pidgin-2.5.1-msn-hasyou.patch
+Patch103:       pidgin-2.5.1-nss-ssl.patch
+
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 Summary:	A Gtk+ based multiprotocol instant messaging client
@@ -293,6 +297,9 @@
 
 ## Patches 100+: To be Included in Future Upstream
 %patch100 -p0 -b .gnomeproxy
+%patch101 -p0 -b .buddyicon
+%patch102 -p0 -b .hasyou
+%patch103 -p0 -b .nss
 
 # Our preferences
 cp %{SOURCE1} prefs.xml
@@ -502,6 +509,12 @@
 
 
 %changelog
+* Tue Sep 16 2008 Stu Tomlinson <stu at nosnilmot.com> 2.5.1-3
+- Backport fixes from upstream:
+  Add "Has You:" back to MSN tooltips
+  Fix crash during removal of your own buddy icon
+  Fix crash when handling self signed certificate with NSS SSL
+
 * Tue Sep 16 2008 Stu Tomlinson <stu at nosnilmot.com> 2.5.1-2
 - Fix a crash with GNOME proxy enabled (#461951)
 




More information about the fedora-extras-commits mailing list