summaryrefslogtreecommitdiff
path: root/devel/libslang
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-07-27 00:36:08 +0000
committerSteve Price <steve@FreeBSD.org>1998-07-27 00:36:08 +0000
commitbcb470dc62c095c6699852810868ea8ab2c9a190 (patch)
tree4176a5ca07712e3af25240e0fb6d8da7cd6f28d8 /devel/libslang
parentUpdate to version 1.39. (diff)
Get rid of a potential buffer overflow.
PR: 7387 Submitted by: bonga@doxx.net
Diffstat (limited to 'devel/libslang')
-rw-r--r--devel/libslang/files/patch-aa11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/libslang/files/patch-aa b/devel/libslang/files/patch-aa
new file mode 100644
index 000000000000..5660d068dff3
--- /dev/null
+++ b/devel/libslang/files/patch-aa
@@ -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)))