commit 4bee63af358db61367f987ef1b3dbad5070e1cad
parent 5e02bd982ab0505bd75ffb17718e7750d7e2865f
Author: Ricardo Mones <ricardo@mones.org>
Date: Thu, 14 Jul 2016 11:52:43 +0200
Fix bug #3573: Out of bounds read in macro LBREAK_IF_REQUIRED
Thanks Hanno Boeck for the patch!
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/codeconv.c b/src/codeconv.c
@@ -1584,9 +1584,7 @@ gchar *conv_unmime_header(const gchar *str, const gchar *default_encoding,
left = MAX_LINELEN - 1; \
} \
} else if (destp == (guchar *)dest && left < 7) { \
- if (isspace(*(destp - 1))) \
- destp--; \
- else if (is_plain_text && isspace(*srcp)) \
+ if (is_plain_text && isspace(*srcp)) \
srcp++; \
if (*srcp) { \
*destp++ = '\n'; \