mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Get rid of a potential buffer overflow.
PR: 7387 Submitted by: bonga@doxx.net
This commit is contained in:
parent
6650804ee9
commit
bcb470dc62
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=12151
11
devel/libslang/files/patch-aa
Normal file
11
devel/libslang/files/patch-aa
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/sltermin.c.orig Sun Jul 26 15:57:36 1998
|
||||
+++ src/sltermin.c Sun Jul 26 15:58:06 1998
|
||||
@@ -273,7 +273,7 @@
|
||||
{
|
||||
tidir = Terminfo_Dirs[i];
|
||||
if ((tidir != NULL)
|
||||
- && (sizeof (file) > strlen (tidir) + 2 + strlen (term)))
|
||||
+ && (sizeof (file) > strlen (tidir) + 3 + strlen (term)))
|
||||
{
|
||||
sprintf (file, "%s/%c/%s", tidir, *term, term);
|
||||
if (NULL != (fp = open_terminfo (file, ti)))
|
Loading…
Reference in New Issue
Block a user