File gmime-CVE-2010-0409.patch of Package gmime

Index: gmime-2.2.25/docs/reference/html/gmime-gmime-utils.html
===================================================================
--- gmime-2.2.25.orig/docs/reference/html/gmime-gmime-utils.html
+++ gmime-2.2.25/docs/reference/html/gmime-gmime-utils.html
@@ -1141,7 +1141,7 @@ the end of the UU encoded block has been
 <hr>
 <div class="refsect2" title="GMIME_UUENCODE_LEN()">
 <a name="GMIME-UUENCODE-LEN--CAPS"></a><h3>GMIME_UUENCODE_LEN()</h3>
-<pre class="programlisting">#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 62))
+<pre class="programlisting">#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 64))
 </pre>
 <p>
 Calculates the maximum number of bytes needed to uuencode the full
Index: gmime-2.2.25/docs/reference/xml/gmime-utils.xml
===================================================================
--- gmime-2.2.25.orig/docs/reference/xml/gmime-utils.xml
+++ gmime-2.2.25/docs/reference/xml/gmime-utils.xml
@@ -726,7 +726,7 @@ the end of the UU encoded block has been
 </para></refsect2>
 <refsect2 id="GMIME-UUENCODE-LEN--CAPS" role="macro">
 <title>GMIME_UUENCODE_LEN()</title>
-<indexterm zone="GMIME-UUENCODE-LEN--CAPS"><primary sortas="GMIME_UUENCODE_LEN">GMIME_UUENCODE_LEN</primary></indexterm><programlisting>#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 62))
+<indexterm zone="GMIME-UUENCODE-LEN--CAPS"><primary sortas="GMIME_UUENCODE_LEN">GMIME_UUENCODE_LEN</primary></indexterm><programlisting>#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 64))
 </programlisting>
 <para>
 Calculates the maximum number of bytes needed to uuencode the full
Index: gmime-2.2.25/gmime/gmime-utils.h
===================================================================
--- gmime-2.2.25.orig/gmime/gmime-utils.h
+++ gmime-2.2.25/gmime/gmime-utils.h
@@ -106,7 +106,7 @@ struct _GMimeReferences {
  * Returns the number of output bytes needed to uuencode an input
  * buffer of size @x.
  **/
-#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 62))
+#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 64))
 
 
 /**
openSUSE Build Service is sponsored by