summaryrefslogtreecommitdiff
path: root/textproc/glimpse/files/patch-aj
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>2004-04-29 01:43:25 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>2004-04-29 01:43:25 +0000
commit4d150424a07ee58813e375bb48e471f3f208ba8c (patch)
tree2d847579dc4851ed27b55258caa55765d56e8591 /textproc/glimpse/files/patch-aj
parentUse the new gnomespeech GNOME component. (diff)
Upgrade to v4.13.1. Fix a core dump that occurs when long patterns are used.
Diffstat (limited to '')
-rw-r--r--textproc/glimpse/files/patch-aj11
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/glimpse/files/patch-aj b/textproc/glimpse/files/patch-aj
new file mode 100644
index 000000000000..a53f66a6c0b5
--- /dev/null
+++ b/textproc/glimpse/files/patch-aj
@@ -0,0 +1,11 @@
+--- agrep/sgrep.c.orig Mon Apr 26 23:15:06 2004
++++ agrep/sgrep.c Mon Apr 26 23:15:33 2004
+@@ -1539,7 +1539,7 @@
+ hash = TR[*text];
+ hash = (hash << 3) + TR[*(text-1)];
+ shift = SHIFT_2[hash];
+- while(shift) {
++ while(shift && text <= textend) {
+ text = text + shift;
+ hash = (TR[*text] << 3) + TR[*(text-1)];
+ shift = SHIFT_2[hash];