From cef9badf892ccac1f7ce3d008e95e9905f93ecb9 Mon Sep 17 00:00:00 2001 From: Eddy De Greef Date: Mon, 14 Sep 2009 19:16:25 +0000 Subject: [PATCH] Fix for off-by-one error, potentially causing a crash, contributed by Evan Teran (SF bug #2858723). --- source/regularExp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/regularExp.c b/source/regularExp.c index 12afade..cc63cab 100644 --- a/source/regularExp.c +++ b/source/regularExp.c @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: regularExp.c,v 1.33 2008/02/29 23:12:26 lebert Exp $"; +static const char CVSID[] = "$Id: regularExp.c,v 1.34 2009/09/14 19:16:25 edg Exp $"; /*------------------------------------------------------------------------* * `CompileRE', `ExecRE', and `substituteRE' -- regular expression parsing * @@ -2656,7 +2656,7 @@ static struct brace_counts *Brace; /* Default table for determining whether a character is a word delimiter. */ -static unsigned char Default_Delimiters [UCHAR_MAX] = {0}; +static unsigned char Default_Delimiters [UCHAR_MAX+1] = {0}; static unsigned char *Current_Delimiters; /* Current delimiter table */ -- 2.11.4.GIT