Revert "Fix crash when decoding a = at end of the data"

This reverts commit 1544d178c4cf56ee8358f06475c4b3e45dddc11c.
Update ChangeLog
Merge pull request #12 from Zentyal/scabrero/fix-memory-leaks

Fix memory leak in file NSString+Imap4.m function stringByDecodingImap4FolderName
Fix crash when decoding a = at end of the data

In decoding a quoted printable mail. There is a buffer overflow
as we are always parsing two bytes instead of one.

See the full backtrace at:

https://gist.github.com/sixstone-qq/cb8099b66c2911e8aaf2

This patch avoid regressions to manage = at the end of the source.
Merge pull request #5 from Zentyal/ejhernandez/fix-crash-decoding-quoted-printable-no-regressions

Fix crash when decoding a = at end of the data
Fix memory leak when failing to parse a quoted printable

Valgrind report:

   604 bytes in 1 blocks are definitely lost in loss record 8,010 of 10,179
      at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      by 0x2BF73131: _i_NSData_QuotedPrintableCoding_dataByDecodingQuotedPrintableTransferEncoding (in /usr/lib/libNGExtensions.so.4.9.203)
      by 0x3375053E: _i_NSData_SOGoMailUtilities_bodyDataFromEncoding_ (in /usr/lib/GNUstep/SOGo/Mailer.SOGo/Mailer)
      by 0x34D23B46: _i_MAPIStoreMailMessage__setBodyContentFromRawData_ (in /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/SOGoBackend)
      by 0x34D1DD0A: _i_MAPIStoreMailFolder__lookupMessage_ (in /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/SOGoBackend)
      by 0x34CF4312: _i_MAPIStoreFolder__lookupMessageByURL_ (in /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/SOGoBackend)
      by 0x34CF497A: _i_MAPIStoreFolder__openMessage_withMID_forWriting_inMemCtx_ (in /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/SOGoBackend)
      by 0x2A5D5013: sogo_folder_open_message (in /usr/lib/x86_64-linux-gnu/mapistore_backends/libMAPIStoreSOGo.so.1.0.0)
Merge pull request #14 from Zentyal/ejhernandez/fix-memory-leak-when-non-decoding-quoted-printable

 Fix memory leak when failing to parse a quoted printable
Merge pull request #13 from Zentyal/ejhernandez/fix-crash-decoding-quoted-printable-no-regressions

Fix crash when decoding a = at end of the data
Fix memory leak when failing to parse a quoted printable

Valgrind report:

   604 bytes in 1 blocks are definitely lost in loss record 8,010 of 10,179
      at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      by 0x2BF73131: _i_NSData_QuotedPrintableCoding_dataByDecodingQuotedPrintableTransferEncoding (in /usr/lib/libNGExtensions.so.4.9.203)
      by 0x3375053E: _i_NSData_SOGoMailUtilities_bodyDataFromEncoding_ (in /usr/lib/GNUstep/SOGo/Mailer.SOGo/Mailer)
      by 0x34D23B46: _i_MAPIStoreMailMessage__setBodyContentFromRawData_ (in /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/SOGoBackend)
      by 0x34D1DD0A: _i_MAPIStoreMailFolder__lookupMessage_ (in /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/SOGoBackend)
      by 0x34CF4312: _i_MAPIStoreFolder__lookupMessageByURL_ (in /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/SOGoBackend)
      by 0x34CF497A: _i_MAPIStoreFolder__openMessage_withMID_forWriting_inMemCtx_ (in /usr/lib/GNUstep/SOGo/SOGoBackend.MAPIStore/SOGoBackend)
      by 0x2A5D5013: sogo_folder_open_message (in /usr/lib/x86_64-linux-gnu/mapistore_backends/libMAPIStoreSOGo.so.1.0.0)

In decoding and encoding failing.
Merge branch 'master' into ejhernandez/fix-memory-leak-when-non-decoding-quoted-printable
Merge remote-tracking branch 'upstream/master' into ejhernandez/fix-memory-leak-when-non-decoding-quoted-printable

Conflicts:
	sope-core/NGExtensions/NGQuotedPrintableCoding.m
Use malloc/free as NGAllocAtomic/NGFree are useless

LIB_FOUNDATION_BOEHM_GC is never used and will never be
according to inverse-inc devs
Merge pull request #6 from Zentyal/ejhernandez/fix-memory-leak-when-non-decoding-quoted-printable

Fix memory leak when failing to parse a quoted printable
Merge branch 'master' into trusty
Changelog up for new release 2.2.9-zentyal3