rpms/dbmail/FC-6 dbmail-imapd-gmime-segv.patch, NONE, 1.1 dbmail.spec, 1.14, 1.15

Bernard Johnson (bjohnson) fedora-extras-commits at redhat.com
Tue Jul 3 22:33:48 UTC 2007


Author: bjohnson

Update of /cvs/pkgs/rpms/dbmail/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21347/FC-6

Modified Files:
	dbmail.spec 
Added Files:
	dbmail-imapd-gmime-segv.patch 
Log Message:
patch to fix segv in imapd


dbmail-imapd-gmime-segv.patch:

--- NEW FILE dbmail-imapd-gmime-segv.patch ---
Index: imapd.c
===================================================================
--- imapd.c	(revision 2683)
+++ imapd.c	(revision 2685)
@@ -37,6 +37,7 @@
 	serverConfig_t config;
 	int result;
 		
+	g_mime_init(0);
 	openlog(PNAME, LOG_PID, LOG_MAIL);
 
        //fixes valgrind Conditional jump or move depends on uninitialised value(s)
@@ -60,6 +61,7 @@
 	result = serverparent_mainloop(&config, "IMAP", "dbmail-imapd");
 	
 shutdown:
+	g_mime_shutdown();
 	config_free();
 
 	TRACE(TRACE_INFO, "exit");
Index: dbmail-imapsession.c
===================================================================
--- dbmail-imapsession.c	(revision 2683)
+++ dbmail-imapsession.c	(revision 2685)
@@ -179,8 +179,6 @@
 {
 	struct ImapSession * self;
 
-	g_mime_init(0);
-
 	/* init: cache */
 	if (init_cache() != 0)
 		return NULL;
@@ -279,8 +277,6 @@
 	dbmail_imap_session_fetch_free(self);
 	dbmail_imap_session_args_free(self, TRUE);
 
-	g_mime_shutdown();
-
 	g_free(self);
 }
 


Index: dbmail.spec
===================================================================
RCS file: /cvs/pkgs/rpms/dbmail/FC-6/dbmail.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- dbmail.spec	23 Jun 2007 19:54:31 -0000	1.14
+++ dbmail.spec	3 Jul 2007 22:33:12 -0000	1.15
@@ -11,7 +11,7 @@
 
 Name:           dbmail
 Version:        2.2.5
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        The DBMail mail storage system
 
 Group:          System Environment/Daemons
@@ -27,6 +27,7 @@
 Source7:        README.fedora
 Patch0:         dbmail-thread-references.patch
 Patch1:         dbmail-hup.patch
+Patch2:         dbmail-imapd-gmime-segv.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -69,6 +70,7 @@
 
 %patch0 -p0 -b .thread-references
 %patch1 -p0 -b .hup
+%patch2 -p0 -b .gmime-segv
 
 # we don't need README.solaris and we don't want it caught up in the %%doc
 # README* wildcard - but we do want our shiny new README.fedora file to be
@@ -235,6 +237,9 @@
 %{_libdir}/dbmail/libpgsql*
 
 %changelog
+* Tue Jul 03 2007 Bernard Johnson <bjohnson at symetrix.com> 2.2.5-6
+- patch to fix SEGV in dbmail-imapd
+
 * Sat Jun 23 2007 Bernard Johnson <bjohnson at symetrix.com> 2.2.5-5
 - patch to reopen logs files on -HUP
 - patch to send error when thread references requested




More information about the fedora-extras-commits mailing list