diff options
author | steve <steve@FreeBSD.org> | 1998-07-27 08:36:08 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-07-27 08:36:08 +0800 |
commit | 5a50412b7cbb76994a6d3640fd1d79fc42fc260e (patch) | |
tree | 3d7e4ab2a7df1fe369b89fe85414c8e891451076 /devel | |
parent | 6e1991110746ba5cd002ecf863c3e0db4ac1fcf9 (diff) | |
download | freebsd-ports-gnome-5a50412b7cbb76994a6d3640fd1d79fc42fc260e.tar.gz freebsd-ports-gnome-5a50412b7cbb76994a6d3640fd1d79fc42fc260e.tar.zst freebsd-ports-gnome-5a50412b7cbb76994a6d3640fd1d79fc42fc260e.zip |
Get rid of a potential buffer overflow.
PR: 7387
Submitted by: bonga@doxx.net
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libslang/files/patch-aa | 11 |
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))) |