options, and new features, see the NewStuff file next to this ChangeLog.
-Exim version 4.91
------------------
+Since Exim version 4.90
+-----------------------
JH/01 Replace the store_release() internal interface with store_newblock(),
which internalises the check required to safely use the old one, plus
ignoring. This covers use with PRDR, frozen messages, queue-only and
fake-reject.
+HS/01 Fix Buffer overflow in base64d() (CVE-2018-6789)
+
JH/16 Fix bug in DKIM verify: a buffer overflow could corrupt the malloc
metadata, resulting in a crash in free().
int
b64decode(const uschar *code, uschar **ptr)
{
+
int x, y;
-uschar *result = store_get(3*(Ustrlen(code)/4) + 1);
+uschar *result;
-*ptr = result;
+{
+ int l = Ustrlen(code);
+ *ptr = result = store_get(1 + l/4 * 3 + l%4);
+}
/* Each cycle of the loop handles a quantum of 4 input bytes. For the last
quantum this may decode to 1, 2, or 3 output bytes. */