Patch an fgets overflow and bump PORTREVISION.
Obtained from: OpenBSD
This commit is contained in:
parent
cd2c175bc3
commit
26c8e115eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83707
2 changed files with 13 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= lgrind
|
PORTNAME= lgrind
|
||||||
PORTVERSION= 3.67
|
PORTVERSION= 3.67
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= print
|
CATEGORIES= print
|
||||||
#MASTER_SITES= ftp://ftp.dante.de/tex-archive/support/ \
|
#MASTER_SITES= ftp://ftp.dante.de/tex-archive/support/ \
|
||||||
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}
|
||||||
|
|
12
print/lgrind/files/patch-lgutil_c
Normal file
12
print/lgrind/files/patch-lgutil_c
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
$OpenBSD: patch-lgutil_c,v 1.1 2003/05/01 11:54:15 avsm Exp $
|
||||||
|
--- source/lgutil.c.orig Tue Apr 15 22:55:24 2003
|
||||||
|
+++ source/lgutil.c Tue Apr 15 22:56:21 2003
|
||||||
|
@@ -113,7 +113,7 @@ void Internal_Help_Language_List()
|
||||||
|
check=0;
|
||||||
|
if (*config=='\n' || config[strlen(config)-2]!='\\')
|
||||||
|
check=1;
|
||||||
|
- if (fgets(config, BUFFERSIZE, tf)==NULL) break;
|
||||||
|
+ if (fgets(config, sizeof config, tf)==NULL) break;
|
||||||
|
if (check!=0) AddToLList(config, &currlch, &llch);
|
||||||
|
} while (strcmp((*currlch).name, "EndOfLanguageDefinitions")!=0);
|
||||||
|
rch=lch;
|
Loading…
Reference in a new issue