[Commits] [SCM] claws branch, master, updated. 3.11.1-206-g463abe4

miras at claws-mail.org miras at claws-mail.org
Tue Jul 14 20:57:11 CEST 2015


The branch, master has been updated
       via  463abe4effd5dedc7e41332a6f9cbe185f0bb738 (commit)
      from  52551ae80da337c0d266374b154b118d535befd7 (commit)

Summary of changes:
 src/plugins/tnef_parse/ytnef.c |    9 +++++++++
 1 file changed, 9 insertions(+)


- Log -----------------------------------------------------------------
commit 463abe4effd5dedc7e41332a6f9cbe185f0bb738
Author: Michael Rasmussen <mir at datanom.net>
Date:   Tue Jul 14 20:57:00 2015 +0200

    Added FreeBSD patch, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=167460. Fixes claws-mail bug #3457

diff --git a/src/plugins/tnef_parse/ytnef.c b/src/plugins/tnef_parse/ytnef.c
index 9184836..df8da3a 100644
--- a/src/plugins/tnef_parse/ytnef.c
+++ b/src/plugins/tnef_parse/ytnef.c
@@ -444,6 +444,13 @@ void TNEFFillMapi(TNEFStruct *TNEF, BYTE *data, DWORD size, MAPIProps *p) {
                 d += num + ((num % 4) ? (4 - num%4) : 0);
                 break;
 
+	    case PT_CLSID:
+		vl->size = 16; /* Size of struct GUID */
+		vl->data = calloc(vl->size, sizeof(WORD));
+		memcpy(vl->data, &d, vl->size);
+		d += 16; /* Size of struct GUID */
+		break;
+
             case PT_I2:
                 // Read in 2 bytes, but proceed by 4 bytes
                 vl->size = 2;
@@ -473,6 +480,8 @@ void TNEFFillMapi(TNEFStruct *TNEF, BYTE *data, DWORD size, MAPIProps *p) {
                 memcpy(vl->data, &temp_ddword, vl->size);
                 d+=8;
                 break;
+	    default:
+		fprintf(stderr, "%s: Fatal BUG: unknown MAPI ID type (%u), (%u)\n", __func__, PROP_TYPE(mp->id), mp->id);
         }
         if (count == (mp->count-1)) {
             count = -1;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list