[68230] trunk/dports/sysutils/FDclone
takanori at macports.org
takanori at macports.org
Sat May 29 10:12:15 PDT 2010
Revision: 68230
http://trac.macports.org/changeset/68230
Author: takanori at macports.org
Date: 2010-05-29 10:12:09 -0700 (Sat, 29 May 2010)
Log Message:
-----------
FDclone:
- Fixed a buffer overflow in string.c.
http://www.unixusers.net/ml/FDclone-users/201005/msg00006.html
Modified Paths:
--------------
trunk/dports/sysutils/FDclone/Portfile
Added Paths:
-----------
trunk/dports/sysutils/FDclone/files/patch-string.c.diff
Modified: trunk/dports/sysutils/FDclone/Portfile
===================================================================
--- trunk/dports/sysutils/FDclone/Portfile 2010-05-29 11:56:11 UTC (rev 68229)
+++ trunk/dports/sysutils/FDclone/Portfile 2010-05-29 17:12:09 UTC (rev 68230)
@@ -4,6 +4,7 @@
name FDclone
version 3.00f
+revision 1
categories sysutils shells
maintainers takanori openmaintainer
description File & Directory Maintenance Tool
@@ -14,7 +15,8 @@
master_sites http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
ftp://ftp.unixusers.net/src/fdclone/
distname FD-${version}
-patchfiles patch-Makefile.in.diff
+patchfiles patch-Makefile.in.diff \
+ patch-string.c.diff
checksums rmd160 1a09119b9db6587d061bbb7a03f6429b139192aa
depends_lib port:ncurses
Added: trunk/dports/sysutils/FDclone/files/patch-string.c.diff
===================================================================
--- trunk/dports/sysutils/FDclone/files/patch-string.c.diff (rev 0)
+++ trunk/dports/sysutils/FDclone/files/patch-string.c.diff 2010-05-29 17:12:09 UTC (rev 68230)
@@ -0,0 +1,14 @@
+--- string.c.orig 2010-05-29 00:00:00.000000000 +0900
++++ string.c 2010-05-30 02:06:50.000000000 +0900
+@@ -43,7 +43,10 @@
+ {
+ for (; n-- > 0; s++) {
+ if (*s == c) return((char *)s);
+- else if (iswchar(s, 0)) s++;
++ else if (iswchar(s, 0)) {
++ if (n-- <= 0) break;
++ s++;
++ }
+ }
+
+ return(NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100529/2a5ad01e/attachment.html>
More information about the macports-changes
mailing list