From 9706ad4087ee40d39281a54075162a1af780fe11 Mon Sep 17 00:00:00 2001 From: Christoph Hohmann Date: Sun, 21 Jul 2002 23:38:45 +0000 Subject: [PATCH] * src/matcher.c set prop->preg pointer to NULL or following check will not fail and regexec will be called with invalid pointer --- ChangeLog.claws | 7 +++++++ configure.in | 2 +- src/matcher.c | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index b6ffde0b7..732ea24f3 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,10 @@ +2002-07-22 [christoph] 0.7.8claws93 + + * src/matcher.c + set prop->preg pointer to NULL or following check + will not fail and regexec will be called with + invalid pointer + 2002-07-21 [alfons] 0.7.8claws92 * src/prefs_common.[ch] diff --git a/configure.in b/configure.in index 671cf8307..394ce35c1 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ MINOR_VERSION=7 MICRO_VERSION=8 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws92 +EXTRA_VERSION=claws93 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/matcher.c b/src/matcher.c index a1e97652d..efb92a59a 100644 --- a/src/matcher.c +++ b/src/matcher.c @@ -262,6 +262,7 @@ static gboolean matcherprop_string_match(MatcherProp * prop, gchar * str) ? REG_ICASE : 0)) != 0) { prop->error = 1; g_free(prop->preg); + prop->preg = NULL; } } if (prop->preg == NULL)