[dspam/f17] fix recipient corruption
Nathanael Noblet
gnat at fedoraproject.org
Thu May 23 16:01:59 UTC 2013
commit 8fbe8b99b59df459b94748816a795b4284f7e3cf
Author: Nathanael D. Noblet <nathanael at gnat.ca>
Date: Thu May 23 09:56:22 2013 -0600
fix recipient corruption
dspam-recipient-corruption.patch | 30 ++++++++++++++++++++++++++++++
dspam.spec | 6 +++++-
2 files changed, 35 insertions(+), 1 deletions(-)
---
diff --git a/dspam-recipient-corruption.patch b/dspam-recipient-corruption.patch
new file mode 100644
index 0000000..2704ab5
--- /dev/null
+++ b/dspam-recipient-corruption.patch
@@ -0,0 +1,30 @@
+commit cbed19764df8ecc1469f739ca33eb92aa3f67584
+Author: Allan Ievers <aimail-dspam_users at rearden.com>
+Date: Thu May 10 23:07:30 2012 +0200
+
+ Fix recipient corrpution when releasing a message from quarantine
+
+ MFM: 1 day
+ Bug-ID: none
+ Bug-Reported-By: Allan Ievers <aimail-dspam_users at rearden.com>
+ Security: none
+
+diff --git a/src/dspam.c b/src/dspam.c
+index 7afc038..2100c9e 100644
+--- a/src/dspam.c
++++ b/src/dspam.c
+@@ -1,4 +1,4 @@
+-/* $Id: dspam.c,v 1.412 2011/11/10 00:26:00 tomhendr Exp $ */
++/* $Id: dspam.c,v 1.413 2012/05/10 23:03:25 sbajic Exp $ */
+
+ /*
+ DSPAM
+@@ -500,7 +500,7 @@ process_message (
+ }
+
+ /* Change also the mail recipient */
+- ATX->recipient = CTX->username;
++ strcpy(ATX->recipient, CTX->username);
+
+ }
+ }
diff --git a/dspam.spec b/dspam.spec
index 8a6859b..f947f1d 100644
--- a/dspam.spec
+++ b/dspam.spec
@@ -27,7 +27,7 @@ Patch1: dspam-3.9.0-docs.patch
Patch2: dspam-3.9.0-dspamsock.patch
Patch3: dspam-default-server-port.patch
Patch4: dspam-3.10.2.exim.patch
-
+Patch5: dspam-recipient-corruption.patch
URL: http://www.nuclearelephant.com/
# kept to be able to build EPEL versions
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
@@ -140,6 +140,7 @@ Web-based interface for DSPAM's powerful Anti-Spam engine.
%patch2 -p0
%patch3 -p0
%patch4 -p0
+$patch5 -p1
%build
@@ -381,6 +382,9 @@ exit 0
%config(noreplace) %{_sysconfdir}/httpd/conf.d/dspam-web.conf
%changelog
+* Thu May 23 2013 Nathanael Noblet <nathanael at gnat.ca> - 3.10.2-5
+- Fix recipient corruption bug
+
* Wed May 15 2013 Nathanael Noblet <nathanael at gnat.ca> - 3.10.2-4
- set hardened build to add PIE option since dspam can be long running bug #954345
- properly fixes #657357 - PostgreSQL purge script works
More information about the perl-devel
mailing list