diff options
author | will <will@FreeBSD.org> | 2000-06-30 04:35:30 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2000-06-30 04:35:30 +0800 |
commit | 6679f2369dde3ee7456d0397291a20d608d673e3 (patch) | |
tree | 5c92352b0f89b54039bd9274f0a60fa295f78194 /x11 | |
parent | 6df420f01b83286aff36f73af4c7d72158a3b5fa (diff) | |
download | freebsd-ports-gnome-6679f2369dde3ee7456d0397291a20d608d673e3.tar.gz freebsd-ports-gnome-6679f2369dde3ee7456d0397291a20d608d673e3.tar.zst freebsd-ports-gnome-6679f2369dde3ee7456d0397291a20d608d673e3.zip |
Add a patch that will hopefully prevent possible buffer overflow with
gethostbyname(); it uses a 25-character buffer which is insufficient for
some localhost domains; increase to 255 (plus terminating character), which
is XNS5 recommendation.
Obtained from: NetBSD
Diffstat (limited to 'x11')
-rw-r--r-- | x11/kdelibs11/files/patch-ak | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/x11/kdelibs11/files/patch-ak b/x11/kdelibs11/files/patch-ak new file mode 100644 index 000000000000..e1a4af84f75b --- /dev/null +++ b/x11/kdelibs11/files/patch-ak @@ -0,0 +1,14 @@ +--- kfmlib/kfm.cpp.orig Wed Jun 2 10:07:42 1999 ++++ kfmlib/kfm.cpp Tue Jan 25 22:00:23 2000 +@@ -44,9 +44,9 @@ + if (i==0) + { + // we are running local, so add the hostname +- char name[25]; ++ char name[256]; + +- if (gethostname(name, 25) == 0) ++ if (gethostname(name, sizeof(name)) == 0) + d = name + d; + } + |