mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
Fix buffer overflow
PR: 34540 Submitted by: maintainer
This commit is contained in:
parent
af571993d8
commit
56abf3a55f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54120
12
editors/joe/files/patch-ag
Normal file
12
editors/joe/files/patch-ag
Normal file
@ -0,0 +1,12 @@
|
||||
--- rc.c.orig Fri Feb 1 16:50:23 2002
|
||||
+++ rc.c Fri Feb 1 16:50:43 2002
|
||||
@@ -610,7 +610,8 @@
|
||||
FILE *fd; /* rc file */
|
||||
int line=0; /* Line number */
|
||||
int err=0; /* Set to 1 if there was a syntax error */
|
||||
- ossep(zcpy(buf,name));
|
||||
+ strlcpy(buf,name,sizeof(buf));
|
||||
+ ossep(buf);
|
||||
#ifdef __MSDOS__
|
||||
fd=fopen(buf,"rt");
|
||||
#else
|
12
editors/joe2/files/patch-ag
Normal file
12
editors/joe2/files/patch-ag
Normal file
@ -0,0 +1,12 @@
|
||||
--- rc.c.orig Fri Feb 1 16:50:23 2002
|
||||
+++ rc.c Fri Feb 1 16:50:43 2002
|
||||
@@ -610,7 +610,8 @@
|
||||
FILE *fd; /* rc file */
|
||||
int line=0; /* Line number */
|
||||
int err=0; /* Set to 1 if there was a syntax error */
|
||||
- ossep(zcpy(buf,name));
|
||||
+ strlcpy(buf,name,sizeof(buf));
|
||||
+ ossep(buf);
|
||||
#ifdef __MSDOS__
|
||||
fd=fopen(buf,"rt");
|
||||
#else
|
Loading…
Reference in New Issue
Block a user