This commit is contained in:
parent
4aba41ab92
commit
85db21f9a3
@ -1,9 +1,6 @@
|
|||||||
# Fixes bug (#354291)
|
|
||||||
# Fetchmail segfaulted while retrieving mail with To: header longer than 2048.
|
|
||||||
# It had to be invoked with -v -v or higher verbosity level.
|
|
||||||
--- report.c
|
--- report.c
|
||||||
+++ report.c
|
+++ report.c
|
||||||
@@ -238,9 +238,13 @@
|
@@ -238,11 +238,17 @@
|
||||||
rep_ensuresize();
|
rep_ensuresize();
|
||||||
|
|
||||||
#if defined(VA_START)
|
#if defined(VA_START)
|
||||||
@ -11,10 +8,45 @@
|
|||||||
for ( ; ; )
|
for ( ; ; )
|
||||||
{
|
{
|
||||||
+ /*
|
+ /*
|
||||||
+ * args has to be initialized before every call of vsnprintf(), because
|
+ * args has to be initialized before every call of vsnprintf(),
|
||||||
+ * vsnprintf() invokes va_arg macro and thus args is undefined after the call
|
+ * because vsnprintf() invokes va_arg macro and thus args is
|
||||||
|
+ * undefined after the call
|
||||||
+ */
|
+ */
|
||||||
+ VA_START (args, message);
|
+ VA_START (args, message);
|
||||||
n = vsnprintf (partial_message + partial_message_size_used, partial_message_size - partial_message_size_used,
|
n = vsnprintf (partial_message + partial_message_size_used, partial_message_size - partial_message_size_used,
|
||||||
message, args);
|
message, args);
|
||||||
|
+ va_end (args);
|
||||||
|
|
||||||
|
if (n >= 0
|
||||||
|
&& (unsigned)n < partial_message_size - partial_message_size_used)
|
||||||
|
@@ -254,7 +260,6 @@
|
||||||
|
partial_message_size += 2048;
|
||||||
|
partial_message = REALLOC (partial_message, partial_message_size);
|
||||||
|
}
|
||||||
|
- va_end (args);
|
||||||
|
#else
|
||||||
|
for ( ; ; )
|
||||||
|
{
|
||||||
|
@@ -304,12 +309,13 @@
|
||||||
|
rep_ensuresize();
|
||||||
|
|
||||||
|
#if defined(VA_START)
|
||||||
|
- VA_START (args, message);
|
||||||
|
for ( ; ; )
|
||||||
|
{
|
||||||
|
+ VA_START (args, message);
|
||||||
|
n = vsnprintf (partial_message + partial_message_size_used,
|
||||||
|
partial_message_size - partial_message_size_used,
|
||||||
|
message, args);
|
||||||
|
+ va_end (args);
|
||||||
|
|
||||||
|
/* old glibc versions return -1 for truncation */
|
||||||
|
if (n >= 0
|
||||||
|
@@ -322,7 +328,6 @@
|
||||||
|
partial_message_size += 2048;
|
||||||
|
partial_message = REALLOC (partial_message, partial_message_size);
|
||||||
|
}
|
||||||
|
- va_end (args);
|
||||||
|
#else
|
||||||
|
for ( ; ; )
|
||||||
|
{
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 1 11:53:19 CEST 2008 - puzel@suse.cz
|
||||||
|
|
||||||
|
- updated fetchmail-6.3.8-long_headers_segfault.patch from upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 17 13:20:08 CEST 2008 - puzel@suse.cz
|
Tue Jun 17 13:20:08 CEST 2008 - puzel@suse.cz
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ License: GPL v2 or later; Other uncritical OpenSource License; Public Dom
|
|||||||
Group: Productivity/Networking/Email/Utilities
|
Group: Productivity/Networking/Email/Utilities
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 6.3.8
|
Version: 6.3.8
|
||||||
Release: 136
|
Release: 139
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: %{name}.init
|
Source1: %{name}.init
|
||||||
Source2: %{name}.logrotate
|
Source2: %{name}.logrotate
|
||||||
@ -164,6 +164,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{py_sitedir}/fetchmailconf.*
|
%{py_sitedir}/fetchmailconf.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 01 2008 puzel@suse.cz
|
||||||
|
- updated fetchmail-6.3.8-long_headers_segfault.patch from upstream
|
||||||
* Tue Jun 17 2008 puzel@suse.cz
|
* Tue Jun 17 2008 puzel@suse.cz
|
||||||
- kerberos (krb5) support enabled [bnc#353817]
|
- kerberos (krb5) support enabled [bnc#353817]
|
||||||
* Wed May 28 2008 puzel@suse.cz
|
* Wed May 28 2008 puzel@suse.cz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user