nedit (1:5.6~cvs20081118-7) 30_off_by_one

Summary

 ReleaseNotes        |    2 ++
 source/regularExp.c |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
# Description: Fix for off-by-one error, potentially causing a crash
# Origin: upstream, http://nedit.cvs.sourceforge.net/viewvc/nedit/nedit/source/regularExp.c?r1=1.33&r2=1.34&view=patch
# Author: Evan Teran
# Bug: https://sourceforge.net/tracker/index.php?func=detail&aid=2858723&group_id=11005&atid=111005


@DPATCH@
diff -urNad nedit-5.6~cvs20081118~/ReleaseNotes nedit-5.6~cvs20081118/ReleaseNotes
--- nedit-5.6~cvs20081118~/ReleaseNotes	2009-09-15 21:24:31.000000000 +0200
+++ nedit-5.6~cvs20081118/ReleaseNotes	2009-09-15 21:25:24.000000000 +0200
@@ -23,6 +23,8 @@
 
 Bugs fixed in 5.6
 
+  - Fix for SF bug #2858723: off-by-one error causing a crash
+
   - Fix for SF bug #2687525: tipsfile parser error wrt to eof
 
   - Fix for SF bug #2222159: File was not reload when type was changed
diff -urNad nedit-5.6~cvs20081118~/source/regularExp.c nedit-5.6~cvs20081118/source/regularExp.c
--- nedit-5.6~cvs20081118~/source/regularExp.c	2009-09-15 21:24:31.000000000 +0200
+++ nedit-5.6~cvs20081118/source/regularExp.c	2009-09-15 21:24:31.000000000 +0200
@@ -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 @@
 
 /* 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 */