mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
Upgrade to v4.13.1. Fix a core dump that occurs when long patterns are used.
This commit is contained in:
parent
557e51f968
commit
4d150424a0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107898
3 changed files with 14 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= glimpse
|
||||
PORTVERSION= 4.12.6
|
||||
PORTVERSION= 4.13.1
|
||||
CATEGORIES= textproc databases
|
||||
MASTER_SITES= ftp://ftp.polito.it/pub/tools/unix/harvest/
|
||||
|
||||
|
@ -20,7 +20,6 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -DISO_CHAR_SET=1 -D__STRICT_ANSI__"
|
|||
MAN1= glimpse.1 glimpseindex.1 glimpseserver.1 agrep.1
|
||||
|
||||
pre-configure:
|
||||
${RM} ${WRKSRC}/config.cache
|
||||
${CHMOD} ugo+x ${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
MD5 (glimpse-4.12.6.tar.gz) = 1741abb8c6cb7ab376a5b2aa1d4f9a6b
|
||||
SIZE (glimpse-4.12.6.tar.gz) = 426506
|
||||
MD5 (glimpse-4.13.1.tar.gz) = a4e5d5f8017a9bde5edf233cb80caae5
|
||||
SIZE (glimpse-4.13.1.tar.gz) = 394426
|
||||
|
|
11
textproc/glimpse/files/patch-aj
Normal file
11
textproc/glimpse/files/patch-aj
Normal file
|
@ -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];
|
Loading…
Add table
Reference in a new issue