From fe10473da7c4362b1c4cf31f4145bb5076de4bb9 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Wed, 8 Dec 2004 07:31:21 +0000 Subject: [PATCH] 2004-12-08 [colin] 0.9.13cvs6 * src/textview.c Fix possible boundary overrun in get_email_part(). Patch by Alfons --- ChangeLog.claws | 6 ++++++ PATCHSETS | 1 + configure.ac | 2 +- src/textview.c | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index cda8bcebd..0013cf52c 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,9 @@ +2004-12-08 [colin] 0.9.13cvs6 + + * src/textview.c + Fix possible boundary overrun in + get_email_part(). Patch by Alfons + 2004-12-08 [hoa] 0.9.13cvs5 * src/quote_fmt_parse.y diff --git a/PATCHSETS b/PATCHSETS index 504bbb75c..ba1151604 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -173,3 +173,4 @@ ( cvs diff -u -r 1.97 -r 1.98 src/procmime.c; ) > 0.9.13cvs1.patchset ( cvs diff -u -r 1.122 -r 1.123 AUTHORS; cvs diff -u -r 1.122 -r 1.123 src/prefs_account.c; cvs diff -u -r 1.19 -r 1.20 src/common/smtp.c; cvs diff -u -r 1.9 -r 1.10 src/common/smtp.h; ) > 0.9.13cvs2.patchset ( cvs diff -u -r 1.99 -r 1.100 src/procmime.c; ) > 0.9.13cvs4.patchset +( cvs diff -u -r 1.129 -r 1.130 src/textview.c; ) > 0.9.13cvs6.patchset diff --git a/configure.ac b/configure.ac index e032313a8..0f733e143 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=13 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=5 +EXTRA_VERSION=6 EXTRA_RELEASE= if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then diff --git a/src/textview.c b/src/textview.c index 9c47a6bec..ff6fb6020 100644 --- a/src/textview.c +++ b/src/textview.c @@ -852,7 +852,7 @@ static gboolean get_email_part(const gchar *start, const gchar *scanpos, if (!result) return FALSE; - if (*(bp_ - 1) == '"' && *(ep_) == '"' + if (*ep_ && *(bp_ - 1) == '"' && *(ep_) == '"' && *(ep_ + 1) == ' ' && *(ep_ + 2) == '<' && IS_RFC822_CHAR(*(ep_ + 3))) { /* this informative part with an @ in it is -- 2.25.1