diff options
author | 2008-06-15 11:09:02 +0000 | |
---|---|---|
committer | 2008-06-15 11:09:02 +0000 | |
commit | 85826b3a21828d6233cf3b4fd7333dae3fba86d8 (patch) | |
tree | 6a7972049b32e1229e83f364e73021a27a372e4b /net-mail/fetchmail/files | |
parent | Bug #226505 - For compatibility with phase execution order in (diff) | |
download | gentoo-2-85826b3a21828d6233cf3b4fd7333dae3fba86d8.tar.gz gentoo-2-85826b3a21828d6233cf3b4fd7333dae3fba86d8.tar.bz2 gentoo-2-85826b3a21828d6233cf3b4fd7333dae3fba86d8.zip |
revbump, include fix for security bug #227105
(Portage version: 2.1.5.5)
Diffstat (limited to 'net-mail/fetchmail/files')
-rw-r--r-- | net-mail/fetchmail/files/fetchmail-6.3.8-resize-buffer.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net-mail/fetchmail/files/fetchmail-6.3.8-resize-buffer.patch b/net-mail/fetchmail/files/fetchmail-6.3.8-resize-buffer.patch new file mode 100644 index 000000000000..31075fabd709 --- /dev/null +++ b/net-mail/fetchmail/files/fetchmail-6.3.8-resize-buffer.patch @@ -0,0 +1,29 @@ +--- report.c.orig 2008-06-15 12:35:20.974808379 +0200 ++++ report.c 2008-06-15 12:36:51.961927723 +0200 +@@ -238,11 +238,17 @@ + rep_ensuresize(); + + #if defined(VA_START) +- VA_START (args, message); + for ( ; ; ) + { ++ /* ++ * args has to be initialized before every call of vsnprintf(), ++ * because vsnprintf() invokes va_arg macro and thus args is ++ * undefined after the call. ++ */ ++ VA_START(args, message); + n = vsnprintf (partial_message + partial_message_size_used, partial_message_size - partial_message_size_used, + 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 ( ; ; ) + { |