From 061bf4b99ec63dea3f70c101560ea917febca558 Mon Sep 17 00:00:00 2001 From: Ondrej Vasik Date: Wed, 3 Feb 2010 12:44:44 +0000 Subject: [PATCH] add patch --- star-1.5.1-bufferoverflow.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 star-1.5.1-bufferoverflow.patch diff --git a/star-1.5.1-bufferoverflow.patch b/star-1.5.1-bufferoverflow.patch new file mode 100644 index 0000000..ef5f51c --- /dev/null +++ b/star-1.5.1-bufferoverflow.patch @@ -0,0 +1,12 @@ +diff -urNp star-1.5.1-orig/star/longnames.c star-1.5.1/star/longnames.c +--- star-1.5.1-orig/star/longnames.c 2009-10-16 00:38:55.000000000 +0200 ++++ star-1.5.1/star/longnames.c 2010-02-03 13:36:03.000000000 +0100 +@@ -155,7 +155,7 @@ name_to_tcb(info, ptb) + if (add) + strcatl(ptb->dbuf.t_name, name, "/", (char *)NULL); + else +- strcpy(ptb->dbuf.t_name, name); ++ strncpy(ptb->dbuf.t_name, name, props.pr_maxsname); + return (TRUE); + } +